码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse项目提交到git

时间:2016-10-19 07:36:56      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:

http://www.open-open.com/lib/view/open1406105786710.html

 

1.在https://github.com   new repository 

2.在eclipse中new project  比如:Test项目 

3.右击"Test"->Team->share project...  ->select a repository type:Git
技术分享

勾选  Use or create repository in parent folder of project
技术分享

点击  Create Repository  ->  Finish
这时候打开在workspace中的Test目录会发现多了一个.git文件夹。

4.右击"Test"->Team->commit 本地提交 

5.再右击"Test"->Team->Remote->Push
技术分享

URI就是github上面指定的地址:
技术分享
username和password就是github网站的用户名和密码

5.finish
技术分享
source ref 选择 refs/heads/master  destination ref会自动填充,点击  Add Spec勾选Focus update
开始提交。

6.可以刷新网页查看提交的代码了。。。

eclipse项目提交到git

标签:

原文地址:http://www.cnblogs.com/chengpeng15/p/5975825.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!