可能重复:
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