文章出處

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

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

3.右擊"Test"->Team->share project...  ->select a repository type:Git
eclipse提交項目到github

勾選  Use or create repository in parent folder of project
eclipse提交項目到github

上面warning提示的是不建議在工作區創建的意思,但是這種方式簡便,如需要另外一種方式請移步 我的【git GitHub】另外一篇 較為復雜

點擊  Create Repository  ->  Finish
這時候打開在workspace中的Test目錄會發現多了一個.git文件夾。

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

如果這一步選項Commit需要看下面5的步驟繼續

如果這一步選擇Commit and Push 就直接出來頁面 不需要再去步驟5中push

5.再右擊"Test"->Team->Remote->Push
eclipse提交項目到github

URI就是github上面指定的地址:
eclipse提交項目到github
username和password就是github網站的用戶名和密碼

5.finish
eclipse提交項目到github
source ref 選擇 refs/heads/master  destination ref會自動填充,點擊  Add Spec勾選Focus update
開始提交。

6.可以刷新github網頁查看提交的代碼了。

  轉自 open-open

 


文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()