java - 如何使用 Git 使 Beyond Compare 在 Eclipse 中工作?

标签 java eclipse beyondcompare beyondcompare3

在 Eclipse 中使用时,清楚地解释了如何使 BC 成为 Subversion 和 Git 的默认差异和合并工具。但是后者呢?我不断收到以下对话框:

enter image description here

更新: 添加到我的全局 .gitconfig 和 git difftool 命令现在可以使用了。不能对 Eclipse 说同样的话。我不明白为什么设置起来如此困惑。

[diff]
    tool = bc3
[difftool]
    prompt = false
[difftool "bc3"]
    cmd = \"C:/Program Files (x86)/Beyond Compare 3/BComp.exe\" "$LOCAL" "$REMOTE"

我的 Eclipse 配置现在看起来像: enter image description here

最佳答案

This thread建议:

  • 修改 git 配置

    Eclipse Preferences, under Team -> Git -> Configuration, it points to a .gitconfig file. (and declare beyond compare as documented)

  • 或者...使用 Intellij IDEA(!)

Beyond Compare 和 Eclipse 本身的集成是基于插件的,因此 BC 和 EGit 之间的直接集成可能无法直接通过 Eclipse 实现。

关于java - 如何使用 Git 使 Beyond Compare 在 Eclipse 中工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17507729/

相关文章:

java - Spring Security/Spring Boot - 如何为用户设置角色

java - 在 fragment 之间发送结果的最佳方式?

css - Eclipse 4 主题

compare - 超越比较以正确匹配相似的行

diff - Beyond Compare - 忽略白线

java - 以恒定单位添加日期之间的差异

java - 当我将 <resource-ref> 标记放入 web.xml 时发生错误

java - 使用独立于eclipse的eclipse插件

java - org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject,org.apache.maven.archiver.MavenArchiveConfiguration)

ssh - 除了将远程文件与本地文件进行比较之外