If you somehow create two folders with differing capitalization in the same parent folder in a Git repo, when you clone that repo on Windows, you have a problem: those two folders have combined themselves into one, and you have no way to tell which files belong in which folder, because Windows does not have case-sensitive paths.
However, it’s apparently quite easy to turn on case-sensitivity for a specific folder in Windows, then clone the repo into that folder and fix the situation cleanly:
- Create a new empty folder for this operation
- In a command prompt, run
fsutil.exe file setCaseSensitiveInfo <path> enable- Ensure the command returns a success message
- Clone the repo into that folder:
git clone <remote> <path> - Go untangle the mess as desired
- Some temp-folder-named-differently may
- Commit & push changes back to the remote
See also