1.提交補丁出現以下問題:
$ git am xxxx.patch
xxxx
error: xxxx:1
error: xxxx: patch does not apply
Patch failed at 0001.
When you have resolved this problem run “git am --resolved”.
If you would prefer to skip this patch, instead run “git am --skip”.
To restore the original branch and stop patching run “git am --abort”.
2.翻譯提示:
git am --resolved 已經解決
git am --skip 跳過
git am --abort 終止
3.解決方法:
git am命令會在衝突的文件里加入衝突解決標記,這同git merge命令操作一樣。解決的辦法也一樣,先編輯文件消除衝突,然後使用git add命令暫存文件,最後運行 git am --resolved 提交修正結果。