eclipse提交项目到github

时间:2014-07-23 17:39:31   收藏:0   阅读:306

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

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

3.右击"Test"->Team->share project...  ->select a repository type:Git
bubuko.com,布布扣

勾选  Use or create repository in parent folder of project
bubuko.com,布布扣

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

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

5.再右击"Test"->Team->Remote->Push
bubuko.com,布布扣

URI就是github上面指定的地址:
bubuko.com,布布扣
username和password就是github网站的用户名和密码

5.finish
bubuko.com,布布扣
source ref 选择 refs/heads/master  destination ref会自动填充,点击  Add Spec勾选Focus update
开始提交。

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

eclipse提交项目到github,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!