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

后端 未结 5 1389
臣服心动
臣服心动 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:36

    I would cut and paste my file.php locally out of the working folder. To your desktop lets say.

    Then do a pull, then git should fetch the lastest file.php from the server. Then just paste in your copy of file.php and overwrite the pulled one or open up both versions and just paste in your changes.

    I hope that does the trick.

提交回复
热议问题