I do:
$ git commit . $ git push error: Entry \'file.php\' not uptodate. Cannot merge.
Then I do
$ git pull Already up-to-date.
Are you sure you didn't have already a file.php with a different case? (File.php or file.PHP...), as in this answer?
file.php
File.php
file.PHP