我在电脑上安装了GitStack,以便能够在各种机器上构建我的应用程序。我的Eclipse项目有一个本地git存储库,但我无法弄清如何将两者连接起来。
“Team > Remote > Push”和“Team > Push to Upstream”不可用(灰色)。
我已经配置了以下内容,并阅读了此教程:
我该如何将两者连接起来?
这之后 Git 就会卡住很久?
“Team > Remote > Push”和“Team > Push to Upstream”不可用(灰色)。
我已经配置了以下内容,并阅读了此教程:
- 在Eclipse中设置了Git用户名和电子邮件。
- 我在Gitstack中添加了用户和存储库。
我该如何将两者连接起来?
这是我的命令行尝试(注意:我使用的是Cygwin):
[~/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)
这之后 Git 就会卡住很久?
更新:在添加git remote add
之后,它出现在eclipse中。