git push merge error, but git pull is already up-to-date. Tried reclone, same problem

后端 未结 5 1401
臣服心动
臣服心动 2021-02-10 03:37

I do:

$ git commit .
$ git push
error: Entry \'file.php\' not uptodate. Cannot merge.

Then I do

$ git pull
Already up-to-date.
         


        
5条回答
  •  佛祖请我去吃肉
    2021-02-10 04:27

    Are you sure you didn't have already a file.php with a different case? (File.php or file.PHP...), as in this answer?

    • one already commit
    • one on your working directory, with a different case.

提交回复
热议问题