Rollback multiple commits (before Pushed to public) in Mercurial

后端 未结 3 2122
别跟我提以往
别跟我提以往 2021-02-12 18:53

I am aware that rollbacks can remove commits from the latest changeset in a local repository. However, is it possible to remove all the latest commits since the previous push wi

3条回答
  •  庸人自扰
    2021-02-12 19:44

    You can use the hg strip command, part of the mq extension:

    hg strip REV
    

    This will remove that revision + all its descendants.

    Before you try this, make a copy/clone of the repository to experiment in.

提交回复
热议问题