一、在Eclipse中安装插件
首先在Eclipse上安装git插件EGit
Help-〉Install New Software-〉Add
Name输入EGit,Location输入EGit的插件地址:http://download.eclipse.org/egit/updates
安装完毕后重启Eclipse。
二、在Eclipse中配置EGit
Window->Preferences->Team->Git->Configuration->Add Entry…
Key和Value分别输入user.name和自己的github用户名、user.email和自己的github邮箱。
完成后如下图。