Remove experimental branch

后端 未结 1 816
梦如初夏
梦如初夏 2021-02-12 14:47

How do I remove a feature branch in mercurial if I want to remove it completely? It should be stripped from the history and I don\'t want to merge the changes in another branch

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-12 14:57

    I found a working solution here.

    It works by using hg strip from the mq extension:

    $ hg strip my_pruned_branch
    

    As mentioned in the comments, this should only be used for unpublished changesets.

    0 讨论(0)
提交回复
热议问题