2013-01-24 50 views

回答

3

我不是專家,但我已經這樣做了一次

認爲簡單和直接的方式是

1.Download混帳到您的系統

2.cd到Eclipse項目cd/workspace/sampleproject

3.命令

git config --global user.name "Your Name Here" 
git config --global user.email "[email protected]" 
touch README.md 
git init 
git add README.md 
git commit -m "first commit" 
git remote add origin https://github.com/gitusername/reposname.git 
git push -u origin master     this line may throw error but no problem 

4.從日食 - >幫助 - > eclpise市場 - >搜索 '混帳' - >安裝 '例如:It-git的團隊提供'

5.Go日食 - >窗口 - >打開透視圖 - > Git倉庫

在左側的「添加現有的本地回購協議」,然後眉毛「/工作區/ sampleproject」

7.Now右鍵CLIK這個添加存儲庫位置並添加註釋按

6.從Git倉庫視圖承諾。

8.Now右鍵CLIK這個添加庫點擊推

 By default Configured remote repository should be checked then press Next 
     From Source Ref and Destination Ref Select HEAD //you may change if u want 
     Select next give your github username and password then click on Finish. 
2

如果您使用的是HTTPS地址,你需要通過你的證書(Github的登錄名和密碼)。
查看「Syncing with github」的例子。

使用Eclipse和Egit,您可以在爲本地回購定義遠程地址時設置這些憑據。
請參閱「Push upstream」。

upstream credential

0

只需打開項目的角度,點擊Git裏,你會看到你的項目的工作副本 - >上右擊項目並選擇選項提交。這就是它

您的項目右鍵單擊並選擇團隊就可以查看到Git命令選擇提交相關的各種選項。