git - Beyond Compare 4 在 OSX 上运行时失败,因为 git difftool

标签 git macos beyondcompare git-difftool beyondcompare4

我最近改用 Beyond Compare 作为 OSX 上的 git difftool/mergetool。当 Beyond Compare 为 时它工作正常不是 已经在运行 - git difftool A B按预期工作,A 出现在左 Pane 中,B 出现在右 Pane 中。

但是,如果 Beyond Compare session 已经打开,相同的命令会导致左侧页面显示 /Applications/Beyond Compare.app/Contents/Info.plist右 Pane 为空白。这很烦人,因为我必须完全退出 BC 才能让下一个 difftool session 正常工作,而且我还使用 BC 作为 SFTP 客户端来与远程服务器同步文件。

我正在使用 Beyond Compare 4.1.2、git 2.6.3、OSX 10.11

我的 ~/.gitconfig 的相关部分(取自 Scooter Software ):

[diff]
    tool = bcomp
[difftool]
    prompt = false
[difftool "bcomp"]
    trustExitCode = true
    cmd = "/usr/local/bin/bcomp" "$LOCAL" "$REMOTE"
[merge]
    tool = bcomp
[mergetool]
    prompt = false
    keepBackup = false
[mergetool "bcomp"]
    trustExitCode = true
    cmd = "/usr/local/bin/bcomp" "$LOCAL" "$REMOTE" "$BASE" "$MERGED"

哪里/usr/local/bin/bcomp -> /Applications/Beyond Compare.app/Contents/MacOS/bcomp
任何人都可以提出解决方案吗?

最佳答案

尝试来自 Scooter Software 知识库的更新说明。

启动 Beyond Compare,转到 Beyond Compare 菜单并运行安装命令行工具。

差异

git config --global diff.tool bc3

要使用 Beyond Compare 启动差异,请使用命令:git difftool file.ext

merge (仅限专业版)
git config --global merge.tool bc3
git config --global mergetool.bc3 trustExitCode true

要使用 Beyond Compare 启动 3 路 merge ,请使用命令:git mergetool file.ext

我使用 BC 4.1.3、OS X 10.11 和 Git 2.5.4 测试了上述说明,并从在 Beyond Compare 中打开的不同终端启动了两个“git difftool file.ext”,没有问题。

引用:Using Beyond Compare with Version Control Systems under OS X

关于git - Beyond Compare 4 在 OSX 上运行时失败,因为 git difftool,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35175050/

相关文章:

git - 手动运行 git reset --hard

svn - 如何使用SVN与超越比较3

python - 尝试在 Mac OSX 上安装 wxpython

xcode - 适用于 Mac App Store 的多语言应用程序 - 在哪里设置 Mac App Store 中显示的语言?

与 Beyond Compare 的 Git 差异

eclipse - 在 Eclipse 中使用 Beyond Compare 在 Subversion 中进行合并

eclipse - EGit 冲突解决 GUI?

git - CentOS 上的 Bitbucket 服务器

linux - git:我可以从安装到同一文件系统的两台计算机发出命令吗

macos - 在 os x mavericks (10.9) 中从 applescript 设置桌面照片