eclipse加入git插件:https://www.cnblogs.com/heal/p/6427402.htm
1.装插件:help-Install New Software->add
输入插件名称(自定义),以及插件地址( http://download.eclipse.org/egit/updates/)
按照默认一直安装下去
2.git的简单配置
拥有 git 后,我们还需要对 git 进行简单的配置。 Window->Preferences->Team->Git->Configuration,点击 Add Entry ,配置 email 和 name,当然还可以是一些其他的信息,当提交代码时,这些信息会自动被读取提交。
3.配置git仓库
在eclipse中选择一个项目,右键->Team->Share Project
4.从远程clone
windows--show view--git repositories 切换到git视图
5.从本地上传代码
项目右键--team-commit
Eclipse中出现there is no staged files
preferences->git->committing
将use stage view to commit instead of commit dialog 的勾去掉
项目右键--team--remote--push