Egit安装路径错误 [英] Egit installation path error

查看:383
本文介绍了Egit安装路径错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse Kepler 4.3.0.v20130530-1801

Eclipse Kepler 4.3.0.v20130530-1801

Egit版本:3.0.0.201306101825-r

Egit version: 3.0.0.201306101825-r

启动Eclipse并检查错误日志后,我有以下警告:

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


EGit无法检测到本机Git的安装路径gitPrefix 。
因此,EGit不能遵守在本地Git
安装目录下的$ {gitPrefix} / etc / gitconfig中配置的
的系统级Git设置。这些设置中最重要的是
core.autocrlf。默认情况下,Git for Windows在此系统级配置中将此参数设置为true
。 Git安装位置可以在Team> Git>配置首选项页面的
'系统设置'选项卡上配置
。可以在Team>
Git>确认和警告首选项页面上关闭此警告。

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.

所以我需要一个条目在文件gitconfig中为core.autocrlf?

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

推荐答案

这种警告消息似乎与这个 Egit commit

这篇文章建议:

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


解决方案:

转到窗口>首选项>团队> Git>配置>系统设置选项卡

单击浏览并找到您的git系统安装。

Windows示例: C:\程序文件(x86)\Git\etc\gitconfig

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

这篇关于Egit安装路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆