善变的分支怪异
我试图理解为什么会发生以下情况:
替代文本http://img185。 imageshack.us/img185/8301/capturexj.png
看来我已经启动了另一个分支,但它没有名称,而且我不记得创建了一个新分支。为什么要创建这个新的领导(分支)?我该如何防止这种情况发生?
I'm trying to understand why the below is occuring:
alt text http://img185.imageshack.us/img185/8301/capturexj.png
It appears that I have started another branch, but it has no name, and I do not remember creating a new branch. Why did this new head(branch) get created? How do I keep it from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将工作目录更新到早期版本并从那里开始进行更改,就会发生这种情况。在“修复损坏的链接”提交后,您执行了
hg update
,将您带回到“辅助地址更新”修订版。首先确保您的工作目录位于顶部,然后
hg merge -r fix_broken_link
This will happen if you update your working directory to an earlier revision and start making changes from there. After the "fix broken link" commit, you did a
hg update
that brought you back to the "secondary address update" revision.It's easily fixed by first making sure that your working directory is at the tip then
hg merge -r fix_broken_link