可能重複:
Github first push problem… how to merge remote changes?「強制」git提交本地到外部通過推?
我的外部回購是相當過時。我想推動我所有的本地更改。然而,當我嘗試這樣做,我得到了以下信息...
error: failed to push some refs to 'ssh://mylink'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.
我不想,如果我做這些外部變化會弄亂我的本地更改拔,因爲。我如何覆蓋外部?
其他人使用遠程存儲庫嗎? – 2011-05-15 14:16:06