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

后端 未结 9 817
有刺的猬
有刺的猬 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:31

    The below method is straightforward and so stupid that it cannot go wrong. If you have deleted or renamed multiple files, it will be ok.

    hg clone mydirectory mydirectory1
    

    and now you start mc (or Far Manager) and compare what it was vs what it has become.

    when it's done, just delete mydirectory1.

提交回复
热议问题