Case sensitive changes in git

Context #

I ran into an issue where I had to rename a file in git. Usually after renaming the file, git will detect the change and as part of the commit operation, detect that a rename is taking place. Except when the only changes are case-related.

Solution #

The solution is to use git mv as follows:

$ git mv -f currentname CurrentName

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.