7

エクリプス ケプラー 4.3.0.v20130530-1801

Egit バージョン: 3.0.0.201306101825-r

Eclipse を起動してエラー ログを確認すると、次の警告が表示されます。

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 ?

4

2 に答える 2

6

この種の警告メッセージは、このEgit commitに関連しているようです。
この投稿は次のことを示唆しています。

解決策:タブを クリックして、gitシステムのインストールを見つけます
。 ウィンドウの例:Window > Preferences > Team > Git > Configuration > System Settings
Browse
C:\Program Files (x86)\Git\etc\gitconfig

于 2013-07-22T07:34:44.613 に答える
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.

于 2014-03-28T22:34:41.150 に答える