selenium+testng+gitblit+jenkins+ant自动化测试系列四:Eclipse安装git插件-解决安装egit后找不到git问题

Git是一款免费、开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。Eclipse的git插件叫EGit,类似是GIT的GUI工具。

1.help->AboutEclipse查看eclipse版本

 

2.检查Eclipse中是否已安装EGit插件,Help -> AboutEclipse,查看是否有EGit插件的图标

不同的版本安装的Egit图标貌似不同,有茶杯图标

 

或者类似二叉树图标

我使用的版本先安装的是第二个图标的egit,但是却在preferences-team中找不到git选项,然后卸载了重新安装,才可正常使用。(卸载:在help-AboutEclipse-Installation Details中选中对应的插件进行卸载)

3.安装Egit,不要盲目安装,一定要根据自己的eclipse版本安装对应的egit版本.

EGit对应的Eclipse版本列表

EGit

Contained in release train

Supported Version of Eclipse

p2 repository URL

4.1.0.201509280440-r (latest release)

Eclipse 4.6 M2 (Neon M2)

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.1

4.0.3.201509231615-r

Eclipse 4.5.1 (Mars.1)

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0.3

4.0.2.201509141540-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0.2

4.0.1.201506240215-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0.1

4.0.0.201506090130-r

Eclipse 4.5.0 (Mars)

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0

3.7.1.201504261725-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.7.1

3.7.0.201502260915-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.7

3.6.2.201501210735-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.6.2

3.6.1.201501031845-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.6.1

3.6.0.201412230720-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.6

3.5.3.201412180710-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.5.3

3.5.2.201411120430-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.5.2

3.5.1.201410131835-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.5.1

3.5.0.201409260305-r

 

Eclipse 3.8.2/4.2.2 + (Juno), support for 3.8.2 was fixed see bug 438601

http://download.eclipse.org/egit/updates-3.5

3.4.2.201412180340-r

Eclipse 4.4.2 (Luna SR2)

Eclipse 4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.4.2

3.4.1.201406201815-r

Eclipse 4.4.1 (Luna SR1)

Eclipse 4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.4.1

3.4.0.201406110918-r

Eclipse 4.4 (Luna)

Eclipse 4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.4

3.3.1.201403241930-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.3.1

3.3.0.201403021825-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.3

3.2.0.201312181205-r

4.3.2 (Kepler SR2)

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.2

3.1.0.201310021548-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.1

3.0.3.201309161630-r

4.3.1 (Kepler SR1)

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.0.3

3.0.1.201307141637-r

4.3.0 (Kepler)

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.0.1

2.3.1.201302201838-r

3.8.2/4.2.2 (Juno SR2)

Eclipse 3.7.2+ (Indigo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.3

2.2.0.201212191850-r

3.8.1/4.2.1 (Juno SR1)

Eclipse 3.7.2+ (Indigo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.2

2.1.0.201209190230-r

3.8.1/4.2.1 (Juno SR1)

Eclipse 3.5.2+ (Galileo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.1

2.0.0.201206130900-r

3.8/4.2 (Juno)

Eclipse 3.5.2+ (Galileo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.0

1.3.0.201202151440-r

3.7.2 (Indigo SR2)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.3

1.2.0.201112221803-r

3.7.2 (Indigo SR2)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.2

1.1.0.201109151100-r

3.7.1 (Indigo SR1)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.1

1.0.0.201106090707-r

3.7.0 (Indigo)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.0


如我的elipse版本为Eclipse 4.4.2 (Luna SR2),则下载地址为http://download.eclipse.org/egit/updates-3.4.2

在help-install new software中输入http://download.eclipse.org/egit/updates-3.4.2,勾选加载项,后面就一直点击下一步,接受,安装,重启软件,git插件就安装好了.

 

如果不选择对应的版本,直接输入网址http://download.eclipse.org/egit/updates,下载安装后就会出现在preferences-team中找不到git选项的问题.

 

4.配置Git

菜单栏Window ->Preferences -> Team -> Git -> Configuration,点击Add Entry…,添加name和email,在将项目代码commit到Git时需要用到name和email信息。在点击AddEntry…弹出的对话框中,Key填user.name,Value填姓名信息,这是添加name信息,在添加email信息时,Key填user.email,Value填email地址。如图:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值