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
我試着做一些cmdline-fu,請參閱我的編輯 – Dreen
好吧,在cmdline中添加回購後它出現在Eclipse中,謝謝。 – Dreen