Change case of a file on Windows?

Electrons_Ahoy picture Electrons_Ahoy · Nov 25, 2009 · Viewed 52.2k times · Source

There are a couple of files in our git-controlled codebase that I'd like to rename. Specifically, I just want to change the case of the file, so that sourceCode.java becomes SourceCode.java, for example. The catch: I'm on a Windows box, and the filesystem thinks those are the same file name.

How can I get Windows and Git to recognize that change and check it in?

Answer

Igor Zevaka picture Igor Zevaka · Nov 25, 2009

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