eclipse提交項目到github

jopen 10年前發布 | 102K 次閱讀 Git 版本控制系統 Github

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

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

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

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.可以刷新網頁查看提交的代碼了。。。

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!