When changing the casing of a file, git does (under certain circumstances) not recognize the changes. To get the changes checked in, there is a
simple workaround.
Assuming the file Myfile.txt was changed to myfile.txt, you can
- Rename the file to something entirely new (
mv myfile.txt myfile_tmp.txt) - Check that new file in (
git add myfile_tmp.txt) - Name the file back to the originally intended name (
mv myfile_tmp.txt myfile.txt) - Check the file in again (
git add myfile.txt)
Git should now recognize the changed casing in the filename.