OSX使用Beyond Compare作为git difftool

27

在使用git启动Beyond Compare时,我遇到了以下错误:

'bcompare'未提供作为差异工具的bc3

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

设置差异工具:

$ git config --global diff.tool bc3

尝试比较目录:

$ git difftool plugins

Viewing (1/2): 'plugins/PushPlugin.m'
Launch 'bc3' [Y/n]: y

请注意,bcompare 不适用于 git diff,因为 git 会为一侧或两侧创建临时文件,并在 difftool 返回后将其删除,而 bcompare 会立即返回。此时应使用 bcomp - Steed
2个回答

48

打开Beyond Compare软件,进入菜单栏并运行“安装命令行工具”。


4
太好了,我认为他们的网站上没有提到这个。 - James111

3
根据官方网站: Scooter Software: Beyond Compare。 启动Beyond Compare,转到Beyond Compare菜单并运行Install Command Line Tools。 差异 在终端中:
git config --global diff.tool bc3

使用Beyond Compare启动差异比较,请使用以下命令:git difftool file.ext
仅适用于Merge Pro 在终端中:
git config --global merge.tool bc3
git config --global mergetool.bc3.trustExitCode true

使用Beyond Compare进行三方合并的命令是:git mergetool file.ext。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接