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:

  1. Create a new empty folder for this operation
  2. In a command prompt, run fsutil.exe file setCaseSensitiveInfo <path> enable
    1. Ensure the command returns a success message
  3. Clone the repo into that folder: git clone <remote> <path>
  4. Go untangle the mess as desired
    1. Some temp-folder-named-differently may
  5. Commit & push changes back to the remote

See also

git