文章出處
文章列表
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
上面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
URI就是github上面指定的地址:
username和password就是github網站的用戶名和密碼
5.finish
source ref 選擇 refs/heads/master destination ref會自動填充,點擊 Add Spec勾選Focus update
開始提交。
6.可以刷新github網頁查看提交的代碼了。
轉自 open-open
文章列表
全站熱搜