1. 将eclipse中的项目托管到coding.net上,在coding.net上创建项目
在github上的操作是一样的,github上有两类项目, https, ssh(需要配置秘钥)
2. 在eclipse上配置git的user.name和user.email

3. 在eclipse中创建项目, team->share project

在当前工程目录下创建本地库,该步操作完成后,在当前工程目录下,会生成.git文件夹

将工程同步到暂存库stage/index

将stage代码提交到分支,填写commit信息

push到远程服务器, team-> push branch master, 填写URI和user, password

查看远程服务器代码
4. 其他同事从远程服务器上下载代码
Import Projects from Git






修改代码后,team-> add to index, team-> commit, team->push