EGit 无法检测到 Git 的安装位置 即使我们没有在 Eclipse 富客户端平台的项目中使用 Git 也会发出警告

EGit could not detect where Git is installed warning is coming even we are not use Git in our project in Eclipse rich client platform

我们有使用 eclipse 富客户端平台 (eclipse RCP) 的桌面应用程序,当我 运行 该应用程序时它总是显示这些 Egit 和家庭环境警告,即使我们没有使用 Git 在我们的项目中。

我知道一个解决方案需要安装 git 并在 eclipse 中配置它- RCP 在 windows-preference-Team- Git- 确认和警告中获得一个选项我们可以停用这些警告。

但是为什么我们不使用它就安装 Git 以及为什么通过安装 git 来增加桌面应用程序的大小。

所以,我的问题是如何在不安装 Git 的情况下停用这些 Egit 警告?

EGit 基于 JGit 并且根本不需要安装命令行 Git。我猜你在谈论 this warning that is shown when Git's system-wide settings cannot be found(警告使用 EGit 和 Git 命令行时可能出现的问题,因为它们应该使用相同的而不是单独的 system-wide 设置).

如果是这样,请在 plugin_customization.ini 中添加以下两行以禁用警告:

org.eclipse.egit.ui/show_home_drive_warning=false
org.eclipse.egit.ui/show_git_prefix_warning=false