我試圖把我的(第一次!)混帳回購協議是這樣開始:爲什麼「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