Rollback multiple commits (before Pushed to public) in Mercurial

后端 未结 3 2118
别跟我提以往
别跟我提以往 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

    If you are using mercurial eclipse, you can rollback once, then shelve those changes, then export the multiple sequential commits as patches, strip those commits, then import those patches in the same order, so in case you had conflicting patches, they overwrite each other in the desired way.

    Finally you can unshelve your first rollback. This achieves the same effect as if you were rolling back more than once.

提交回复
热议问题