我试图推动新的更改,但我有一个冲突的文件。试图推后,我得到以下错误:Git告诉我拉,然后提交,然后拉?
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
好了,所以我们需要使用git拉。 我尝试使用git pull
,然后我得到这个错误:
error: Your local changes to the following files would be overwritten by merge:
db/profile_edit.php
Please, commit your changes or stash them before you can merge.
但是,当我尝试提交,我回去的第一个错误。我该怎么办?远程repo上的更改比本地计算机上的更新更新。那么,如何用diff工具打开它并进行更改,然后告诉git我已经进行了更改,这样可以让我推送更改?
+1,很好的解释 – sha256