对git来说很新,并且有一些问题我不知道如何修复.我错误地对工作副本中的一个文件进行了更改,但没有提交更改.然后我对另一个副本进行了更改并提交了它们 - 当我尝试提取更改时,我毫不奇怪地得到一个错误,说"我的文件的本地更改将被合并,中止覆盖".所以我使用git rm删除了有问题的文件,然后使用git add -u并提交删除.然后我尝试拉入最新的副本并得到以下内容.处理这个问题的最佳方法是什么?感谢任何指针
CONFLICT (delete/modify): wp-content/plugins/wp-flash-countdown/xml_option_.xml deleted in HEAD and modified in ba878ab1efe3a039961a446c490d5c93a2bc22e1. Version ba878ab1efe3a039961a446c490d5c93a2bc22e1 of wp-content/plugins/wp-flash-countdown/xml_option_.xml left in tree.
Automatic merge failed; fix conflicts and then commit the result.
Run Code Online (Sandbox Code Playgroud)
thS*_*oft 10
如果你现在这样做git status,它的输出包含:
# Unmerged paths:
# (use "git add/rm <file>..." as appropriate to mark resolution)
Run Code Online (Sandbox Code Playgroud)
如果你是git rm他们,needs merge会输出一个警告,但是删除会成功,然后你可以提交修改 - 这将是"合并提交".