Remove experimental branch

六眼飞鱼酱① 提交于 2019-12-04 16:49:02

问题


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 (just throw the code away).

I know that I can clone my other branches to a new repository like described here but that does not seem to be a clean solution.


回答1:


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.



来源:https://stackoverflow.com/questions/11084802/remove-experimental-branch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!