I’m trying to set up version control for an existing project folder using GitHub Desktop. When I create a new repository and select my existing folder, GitHub Desktop doesn’t behave as expected.
What I want to happen:
- MyProject/
- source files
- .git/ (hidden)
- .gitattributes (hidden)
What actually happens:
- MyProject/
- source files
- repository-name/
- .git/ (hidden)
- .gitattributes (hidden)
Basically GitHub Desktop creates another folder inside my project instead of just adding git tracking to the existing one. This means I have to either move all my files into the new subfolder or move the git files up one level and reconnect everything in GitHub Desktop.
Both solutions feel messy and I’m worried about breaking something. Has anyone else run into this issue? What’s the proper way to handle this situation?