Egit installation path error

青春壹個敷衍的年華 提交于 2019-11-27 03:30:22

问题


Eclipse Kepler 4.3.0.v20130530-1801

Egit version: 3.0.0.201306101825-r

After launching Eclipse and checking the Error Log I have the following warning:

EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in this system level configuration. The Git installation location can be configured on the Team > Git > Configuration preference page's 'System Settings' tab. This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

So I need an entry in the file gitconfig for core.autocrlf ?


回答1:


This kind of warning message seems to be related to this Egit commit.
This post suggests:

Solution:
Go to Window > Preferences > Team > Git > Configuration > System Settings Tab
Click on Browse and find your git system installation.
Windows example: C:\Program Files (x86)\Git\etc\gitconfig




回答2:


I was getting the same Warning from Eclipse on an Android SDK installation in Windows 7. The solution for me was to download Git from git-scm.download/win and installing in the default "Program Files (x86)/Git" directory. You can then reference this directory by navigating within Eclipse to:

  • Window -> Preferences
  • Team -> Git -> Configuration
  • Tab "System Settings"
  • Location: C:\Program Files (x86)\Git\etc\gitconfig

Otherwise, you can ignore the Warning if you have no need for a Git installation.



来源:https://stackoverflow.com/questions/17776086/egit-installation-path-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!