Manfredo
Manfredo

Reputation: 1750

Set priority when using Beyond Compare to solve conflicts after a merge

I can see on the Beyond Compare option list for the mergetool that one can specify to favor the right or the left side with -favorright or -favorleft option.

If I try to use it I get an error

$git merge master

[...](Actual merge with some conflicts)

$git mergetool -favorright
usage: git mergetool [--tool=tool] [--tool-help] [-y|--no-prompt|--prompt] [-O<orderfile>] [file to merge] ...

Upvotes: 0

Views: 81

Answers (1)

Sean Gugler
Sean Gugler

Reputation: 779

You are passing the -favorright argument to git. What you want is for git to pass that argument to Beyond Compare. This command will change your configuration for every future use of git mergetool.

$ git config --global mergetool.bc3.cmd "/usr/bin/bcompare -favorright \$LOCAL
\$REMOTE \$BASE \$MERGED"

You may need to substitute /usr/bin/bcompare for the correct path to the Beyond Compare executable on your system.

Upvotes: 1

Related Questions