Undo an accidental hg strip?

后端 未结 3 930
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 09:46

I have accidentally run hg strip, and deleted a stack of commits. I have not done anything in the repo since. Is there a way for me to bring back this stack of commits, to u

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-06 10:42

    As long as you didn't run the strip with the --no-backup option, the stripped changesets can be found in the repository under .hg\strip-backup. If you sort the directory content by date the latest one is likely the one you need to restore. Restore it with hg unbundle .

提交回复
热议问题