为什么我删除了冲突文件,但仍然无法从远程git pull?
我有一个文件为什么我删除了冲突文件,但仍然无法从远程git pull?,git,Git,我有一个文件main.js发生冲突。由我和另一位成员修改 但是,我删除了计算机上的文件。但还是拉不动 那么我该怎么做才能修复它呢 ➜ js git:(master) ✗ rm main.js ➜ js git:(master) ✗ git pull error: Pulling is not possible because you have unmerged files. hint: Fix them up in the work tree, and then use 'git add/r
main.js
发生冲突。由我和另一位成员修改
但是,我删除了计算机上的文件。但还是拉不动
那么我该怎么做才能修复它呢
➜ js git:(master) ✗ rm main.js
➜ js git:(master) ✗ git pull
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
➜ js git:(硕士)✗ rm main.js
➜ js git:(硕士)✗ 吉特拉力
错误:无法拖动,因为您有未合并的文件。
提示:在工作树中修复它们,然后使用“git add/rm”
提示:根据需要标记解析并进行提交。
致命:由于未解决的冲突而退出。
删除文件不会自动解决冲突。如果在拉取期间发生冲突,则可能处于合并状态。您需要使用git merge--abort取消合并。这样你就可以拉了。它也不会解决您的冲突。根据您想要的状态,您必须使用-X-theres
选项或手动修复冲突对main.js
的更改是否已暂存?如果是这样,请运行git rm main.js
。在工作树中修复它们,然后根据需要使用git add/rm
标记解析并提交。