Git casesensitive rename bug

The problem: Commit failed with error 0 files committed, 2 files failed to commit: upd – xyz file transfer Will not add file alias ’src/SomeBundle/Utils/Ftp.php‘
(’src/SomeBundle/Utils/ftp.php‘ already exists in index)

If you rename sometimes something in git, like ftp.php to Ftp.php, it can be that git won’t push the commit in Phpstorm anymore. A simple manual commit from the shell does the trick for me.

Es kann vorkommen, wenn man in Phpstorm eine Datei umbenennt und nur lower to uppercase etc. ändert, das git die alte Datei im Index behält, da es nicht wirklich eine Änderung der Schreibweise erkennt. In dem Fall hilft ein manuelles Commit um die Sache wieder in Ordnung zu bringen. Einfach ein Commit (wie untenstehend) erstellen und schon steht einem Push nichts mehr im Wege.

git commit -m "fix casesensitive bug"