【问题标题】:Mercurial definitive remove branchMercurial明确删除分支
【发布时间】:2017-02-05 07:20:33
【问题描述】:

我已经阅读过诸如How to correctly close a feature branch in Mercurial?之类的主题

但我想删除分支引用。

例子

hg branch my-branch
hg commit -m "commit" --close-branch
hg branches -c

hg branches -c 在列表中显示 my-branch。而且我无法创建一个名为 my-branch 的新分支。

hg branch my-branch

Mercurial 显示错误:

abort: a branch of the same name already exists

你知道如何明确地删除分支引用吗?

【问题讨论】:

    标签: mercurial branch


    【解决方案1】:

    hg help branch

    ...

    选项:

    -f --force 设置分支名称,即使它隐藏了现有分支

    ...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-26
      • 2019-10-12
      • 1970-01-01
      • 1970-01-01
      • 2010-10-28
      • 1970-01-01
      • 1970-01-01
      • 2016-06-23
      相关资源
      最近更新 更多