Delete all local changesets and revert to tree

后端 未结 7 814
小蘑菇
小蘑菇 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 20:59

    Ok. So just delete all the local stuff, hg init the new local repository and hg pull the latest tip you have. Don't forget to hg update after this.

提交回复
热议问题