How can I recover a removed file in Mercurial (if at all)?

后端 未结 9 847
有刺的猬
有刺的猬 2020-12-23 08:38

Accidentally, by using a GUI as opposed to CLI, I removed every file in a Mercurial project.

I recovered with Revert ok and lost some work, which as I have time mach

9条回答
  •  感动是毒
    2020-12-23 09:41

    You can remove committed revisions using the hg strip command, which is provided by the mq (Mercurial Queues) extension. This should give you back your files.

    Make a backup before trying that out, because it will alter Mercurial's database of changesets.

提交回复
热议问题