git - 自动修复次要合并冲突
当我在我的流浪汉botstrap中开始合并时,我得到了合并冲突:
==> git merge --no-ff testing/other
==> gc-gw0: Auto-merging manifests/fastd.pp
==> gc-gw0: CONFLICT (content): Merge conflict in manifests/fastd.pp
==> gc-gw0: Automatic merge failed; fix conflicts and then commit the result.
这会阻止引导程序运行,尽管冲突真的很小。
我如何自动采用"其他"的版本?在我的脚本中为该文件分支?
最佳答案:
1 个答案:
答案 0 :(得分:0)
我用
解决了这个问题git merge --no-ff -X theirs testing/other
如果发生冲突,这将采用“其他”的版本
请参阅:https://stackoverflow.com/a/3364506/1069083
本文经用户投稿或网站收集转载,如有侵权请联系本站。