- 5.commit代码到本地git仓库
选中需要 Commit 的项目,右键->Team->Commit,
![【eclipse下使用git上传(下载)代码至(从)github】14](http://www.itnose.net/img/20141028/10134561.png)
填写相关的 Commit message,并选择需要提交的 Files,点击Commit。(此处也可以选择 Commit and Push,就可以直接进入下一步了)
![【eclipse下使用git上传(下载)代码至(从)github】15](http://www.itnose.net/img/20141028/10134563.png)
- 6.push代码到github远程仓库
选中需要 Push 的项目,右键->Team->Remote->Push。
![【eclipse下使用git上传(下载)代码至(从)github】16](http://www.itnose.net/img/20141028/10134564.png)
URL 填写步骤3获取的 HTTP 地址,User 和 Password 填写你的 github帐号和密码即可。
![【eclipse下使用git上传(下载)代码至(从)github】17](http://www.itnose.net/img/20141028/10134567.png)
Source ref 和 Destination ref 均选择 master 即可,点击后面的 Add Spec, 点击 Finish 后等待上传即可。
![【eclipse下使用git上传(下载)代码至(从)github】18](http://www.itnose.net/img/20141028/10134568.png)
![【eclipse下使用git上传(下载)代码至(从)github】19](http://www.itnose.net/img/20141028/10134569.png)
![【eclipse下使用git上传(下载)代码至(从)github】20](http://www.itnose.net/img/20141028/10134570.png)
- 7.完成
上传完成后登录 github 即可查看到新提交的项目了。