Accept git mergetool suggestions

66 Views Asked by At

Our mergetool (BeyondCompare) will suggest merge resolutions and not list these as a conflict. Is there a way to run git merge to accept these resolutions?

1

There are 1 best solutions below

0
Marcus Leon On

Solved it with these entries in .gitconfig:

[merge]
    tool = bc3
[mergetool "bc3"]
        cmd =  \"c:\\Program Files (x86)\\Beyond Compare 4\\bcomp.exe\" -automerge -reviewconflicts $LOCAL $REMOTE $BASE $MERGED
        trustExitCode = true

This answer was helped along with the comments from this here: Beyond Compare - automatically merge "conflicted" files in working copy (if possible)