撤消意外的汞试纸? [英] Undo an accidental hg strip?

查看:80
本文介绍了撤消意外的汞试纸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心运行了hg strip,并删除了一堆提交.从那以后,我在仓库中什么都没做.我有办法带回这些提交堆栈,以撤消我刚刚运行的汞带吗?

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 undo the hg strip I just ran?

推荐答案

只要您没有使用--no-backup选项运行剥离,剥离的变更集都可以在存储库中的.hg\strip-backup下找到.如果按日期对目录内容进行排序,则可能需要还原最新的目录.用hg unbundle <filename>还原它.

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 <filename>.

这篇关于撤消意外的汞试纸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆