我试图把我的(第一次!)混帐回购协议是这样开始:为什么“git push helloworld + master:master”而不是“git push helloworld”?
$ git push helloworld
但我得到这个回:
To [email protected]:helloworld.git
! [rejected] HEAD -> master (non-fast forward) error:
failed to push some refs to '[email protected]:helloworld
git'
所以我发现another StackOverflow question关于“修订提交”,并尝试了建议从那里不知道它是否会帮助我:
[email protected] /c/test/helloworld (master)
$ git push helloworld +master:master
它的工作!
但我不知道为什么它固定我的问题:(
有人能解释为什么这个工作,但“git push helloworld
”不?
针对您的评论添加了另一种解决方案。 – VonC 2009-09-25 06:41:54