Mercurial 中的神秘分支
我对使用 Mercurial 有点陌生,但到目前为止我真的很喜欢它。最近,虽然我注意到我已经设法以某种方式创建了一个分支,但我不确定它是如何发生的。现在,当我这样做时:
hg branches
我得到:
default 167:e1ca9e2a5efc
第二个似乎在每次提交时更新。这里可能发生了什么,我可以摆脱它吗?
谢谢!
I'm a little new to using Mercurial but so far I really like it. Recently though I've noticed I've managed to create a branch somehow, but I'm not sure how it's happened. Now when I do:
hg branches
I get:
default 167:e1ca9e2a5efc
With the second one appearing to update at each commit. What could have happened here, and can I get rid of it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尚未创建分支,这是存储库的默认分支,第二部分只是对与该分支对应的存储库条目的引用,因为它是默认值,它始终更新到最后一次提交。
使用
hgbranch
,您可以看到当前分支名称,如果您尝试,您将看到您正在默认分支上工作。您可以使用hgbranchBRANCH_NAME
更改到分支BRANC_NAME。You have not created a branch, that's the default branch of your repository, and the second part is just a reference to the entry of your repository corresponding to that branch, as it's the default one, it's updated to the last commit always.
With
hg branch
you can see the current branch name, if you try, you will see that you are working on the default branch. You can usehg branch BRANCH_NAME
to change to branch BRANC_NAME.