如何在tortoisehg程序中恢复已从架子上删除的文件? [英] How to recover files that have been deleted from shelf in tortoisehg program?
问题描述
我试图从我的书架中删除单个文件,结果删除按钮删除了书架中的所有文件.除了进入 .hg/Trashcan 并尝试记住哪些文件被删除之外,还有其他方法可以恢复这些文件吗?
I was trying to delete an individual file from my shelf and it turns out the delete button deletes all of the files in the shelf instead. Is there a way to recover these files besides going into .hg/Trashcan and trying to remember which of those files were deleted?
推荐答案
执行此操作的最佳方法,正如您所提到的,是进入 .hg/Trashcan
并复制架子文件回到 .hg/shelves
文件夹.显然,如果您按日期对垃圾箱文件夹进行排序或列出,您应该能够看到哪个是您不小心删除的!
The best way to do this, as you alluded to, is to go into the .hg/Trashcan
and copy the shelf file back into the .hg/shelves
folder. Obviously if you order or list the trashcan folder by date you should be able to see which was the one you deleted by accident!
.hg
文件夹指示您将存储库克隆到的位置.Trachcan
文件夹在其中(在某些机器上可能隐藏).在您删除某些内容之前,不会创建该文件夹.
The .hg
folder indicates the location you have clones your repository to. The Trachcan
folder is inside it (may be hidden on some machines). The folder does not get created until you have deleted something.
这篇关于如何在tortoisehg程序中恢复已从架子上删除的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!