步骤 1 : 在Git上新建仓库
http://blog.csdn.net/qq_36653267/article/details/79341587具体步骤都在这;符号“+”--> New Repository-->输入名字-->Create Repository-->得到git地址(https/ssh)
步骤 2 : 在Eclipse中创建一个java项目
File-->new Java Project-->Package-->class-->Test.java
步骤 3 : Share Project
右键项目->Team->Share Project-->配置仓库,点击一下 Use or create repository in parent folder of project-->根据下图完成创建仓库
步骤 4 : 提交项目
右键项目->Team->Commit
使用Ecplise git commit时出现;There are no stages files;(异常解决)
步骤 5 : 设置提交信息
步骤 6 : 设置git参数
Store in Secure Store勾上,表示Eclipse会保持你的账号密码。