Change case of a file on Windows? [duplicate]

Solution 1:

Have a look here for more hints on how to do it:

How to make git ignore changes in case?

Or:

git mv -f name.java Name.java

Solution 2:

If you are on a FAT file system your only choice is to do a two stage rename:

  1. Rename sourceCode.java to anything.you.like
  2. Rename anything.you.like to SourceCode.java

Back in the days when we used Perforce we had exactly this problem and this was the only solution we could come up with.