简体   繁体   中英

git recursive strategy with multiple ancestors and kdiff3

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!!

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM