Search code examples
mercurialrepositorycommitrollback

Rollback multiple commits (before Pushed to public) in Mercurial


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 without having to re-clone the share repository?


Solution

  • You could make a new repo with hg clone:

    hg clone -r last_good_changeset localrepo newlocalrepo