Delete all local changesets and revert to tree

后端 未结 7 623
小蘑菇
小蘑菇 2021-01-29 20:25

I\'m using Mercurial and I\'ve got into a terrible mess locally, with three heads. I can\'t push, and I just want to delete all my local changes and commits and start again with

7条回答
  •  不思量自难忘°
    2021-01-29 21:14

    You may use

    hg strip revision

    to kill any revision and its subtree in your local repository.

    https://www.mercurial-scm.org/wiki/Strip

    But don't try to use it for anything that has been already pushed.

提交回复
热议问题