OSX Using Beyond Compare as git difftool
Asked Answered
L

2

27

When trying to launch Beyond Compare using git, I get this error:

The diff tool bc3 is not available as 'bcompare'

fatal: external diff died, stopping at plugins/PushPlugin.m

Set up diff tool:

$ git config --global diff.tool bc3

Try to compare directory:

$ git difftool plugins

Viewing (1/2): 'plugins/PushPlugin.m'
Launch 'bc3' [Y/n]: y
Lemuellemuela answered 2/7, 2015 at 14:37 Comment(1)
Note, that bcompare is not suitable for git diff, as git creates temporary files for one or both of the sides and deletes them after difftool returns, and bcompare returns immediately. bcomp does the job.Commissioner
L
48

Launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.

Lemuellemuela answered 2/7, 2015 at 14:37 Comment(1)
Great, I don't think they mentioned this on there website.Tehee
L
3

According to official website: Scooter Software: Beyond Compare

Launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.

Diff In a terminal:

git config --global diff.tool bc3

To launch a diff using Beyond Compare, use the command: git difftool file.ext

Merge Pro only In a terminal:

git config --global merge.tool bc3
git config --global mergetool.bc3.trustExitCode true

To launch a 3-way merge using Beyond Compare, use the command: git mergetool file.ext

Leavy answered 13/10, 2020 at 2:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.