具有多个祖先和 kdiff3 的 git 递归策略
我正在运行一个合并场景,其中有多个“共同祖先”可用,因此 Git 运行“git merge 递归”策略。
因此,它运行合并来创建一个新的祖先,而该祖先又将用作我正在处理的贡献者的 CA。
好的,问题如下,有一个文件存在冲突,其“祖先”来自 Git 内部执行的“递归合并”,因此,当我尝试使用 KDiff3 修复与 git mergetool 的冲突时,我看到以下内容:
这正常吗?我的例子有点“太简单”(文件中只有一行,所以不是真实的),但是......拥有这个共同的祖先会有帮助吗?
谢谢!!
I'm running a merge with a scenario where several "common ancestors" are available so Git runs "git merge recursive" strategy.
As such, it runs a merge to create a new ancestor that will, in turn, be used as CA for the contributors I'm working on.
Ok, the problem is the following, there's a file with a conflict which "ancestor" comes from the "recursive merge" performed internally by Git, so, when I try to fix the conflict with git mergetool using KDiff3, I see the following:
Is this normal? My example is a little bit "too simple" (only one line in the file, so not real), but... will having this common ancestor help?
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决合并冲突应该没有问题。此合并策略被定义为默认策略是有原因的。尝试一下(您可能需要添加一个标签,以便在出现问题时能够返回)。
You should have no problem in fixing the merge conflicts. This merge strategy was defined as the default one for a reason. Try it (you might want to add a tag to be able to go back if it goes wrong).