You have unfortunately downloaded your GitHub repo to a directory in your OneDrive synced files haven’t you? It’s synchronizing everything twice! Didn’t anyone tell you that OneDrive wasn’t supposed to be used for source code? Don’t worry. This one is actually pretty easy to fix.
- Close GitHub desktop and any applications currently accessing the code
- Copy the directory from it’s existing location to a new location (preferably one not synchronized by OneDrive or anything else)
- Delete the originating directory
- Restart GitHub desktop… you will be asked where the location is
- Do NOT re-sync. Find the newly moved location
- View files in Explorer through GitHub enterprise and you will see it is correctly connected
Now, return to work and never again make this mistake. 🙂