0

I cloned a remote repository from a specific revision (prior to head). Since then, I have committed changes to my local repo and I'm ready to push these changesets to the remote repo.

I'm just wondering what happens to the remote repository since I didn't clone from head? Will my new changesets become the new head?

4

1 回答 1

0

如果您尝试推送变更集,您可能会收到如下消息:

abort: push creates new remote head 8df8a97d46fd!
(you should pull and merge or use push -f to force)

消息说明了一切。您应该先在本地拉取和合并(不要忘记提交合并),然后才能推送。push -f除非您真的知道自己在做什么,否则不建议使用。

于 2013-05-15T18:54:45.337 回答