May be a workaround similar to this comment in an msysgit issue (for another case-insensitive OS: Windows) could help?
I’ve encountered this same issue. Refactored a package name in Eclipse and switching to a previous build broke due to the folder name not reverting. I’m using Windows 7, Git 1.7.0.2.msysgit.0
My folder was renamed in Windows to “
folder
” but was displayed as “Folder
” in Git.
I fixed the issue by renaming it to “Folder
” in Windows and then running:
git mv "Folder" "Folder2"
git mv "Folder2" "folder"
Note that since git 2.0.1 (June 2014), git mv Folder folder
should just work!
See “Git: Changing capitalization of filenames”