I need to change the case of folders and files. First thing I tried was renaming the folders, but Git didn\'t pick up the changes. So I tried using git mv -f co
Make sure to add the changes to index after rename folder with intermediate folder as below.
git mv oldfolder newfolder
git add -u newfolder
git commit -m "changed the foldername whaddup"
Reference
I could not resolve this apart from performing the following
Make sure to close Visual Studio and any Windows Explorer folders related to that path.
In summary of the comments, you'll have to rename the directory via a intermediate temporary name. E.g.
git mv controller Controller-tmp
git mv Controller-tmp Controller
I think this has to do with the fact that the MinGW implementation of rename(2)
does not support this operation. See this thread, the MSDN docs on the CRT rename implementation and those of the MoveFileEx function.