2012-12-13 66 views
3

我已經在我的電腦上設置了GitStack以便能夠在各種機器上構建我的應用程序。我的Eclipse項目有一個本地git回購,但我不知道如何連接兩者。導出本地EGit回購本地​​GitStack回購

The 團隊>遠程>推團隊>推向上游不可用(灰色)。

我已經配置了下面的事情和read this tutorial:在Eclipse

  • Git的用戶名和電子郵件。
  • 我在Gitstack中添加了一個用戶和一個回購。

我也試着點擊我的本地git的回購和做粘貼存儲庫路徑或URI我管理連接到我的GitStack回購localhost上雖然它明顯是空的。我想這是我必須在其他機器上進行同步的東西?

如何連接兩者?


這裏是我的命令行的嘗試(注:使用Cygwin的IM):

[~/eclipse/JfxMCApp]> git.exe remote add jfxmcapp.gitstack.local http://localhost/JfxMCApp.git 

[~/eclipse/JfxMCApp]> git.exe remote -v 
jfxmcapp.gitstack.local http://localhost/JfxMCApp.git (fetch) 
jfxmcapp.gitstack.local http://localhost/JfxMCApp.git (push) 

[~/eclipse/JfxMCApp]> git.exe push jfxmcapp.gitstack.local 
warning: push.default is unset; its implicit value is changing in 
Git 2.0 from 'matching' to 'simple'. To squelch this message 
and maintain the current behavior after the default changes, use: 

    git config --global push.default matching 

To squelch this message and adopt the new behavior now, use: 

    git config --global push.default simple 

See 'git help config' and search for 'push.default' for further information. 
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode 
'current' instead of 'simple' if you sometimes use older versions of Git) 

這個混帳只是掛了好半天之後?


更新:它出現在Eclipse中添加它git remote add

回答

0

第一後:儘量使用git的命令行客戶端。 Git是強大而邪惡的 - 如果你把它藏在GUI後面,它不會告訴你任何祕密。

關於您的問題:現在您將gitstack回購作爲遠程設置,您只需要按下即可。如果推到上游選項不可用,請嘗試從命令行執行:運行git shell,轉到您的項目目錄並運行git push

+0

我試着做一些cmdline-fu,請參閱我的編輯 – Dreen

+0

好吧,在cmdline中添加回購後它出現在Eclipse中,謝謝。 – Dreen