自动修复次要合并冲突

时间:2015-06-12 21:07:22

标签: git vagrant

当我在我的流浪汉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