首先暂停当前正在执行的git am:
1 | git am --abort |
然后启动一个新的3-way合并:
1 | git am -3 < change.patch |
接下来, 任选合适的方法来解决冲突:
git mergetool- or
vimthe conflict file ( to edit the standard <<<<<<, ||||||, >>>>>> conflict resolution)
解决完冲突之后, 重新add引发冲突的文件:
1 | git add xxx.xxx |
最后继续未完成的git am操作:
1 | git am --continue |