如何撤销汞还原 [英] How to undo a revert in mercurial

查看:75
本文介绍了如何撤销汞还原的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心添加了几个文件后

After I had accidentally added several files with

hg add

我想用

hg revert --all

不幸的是,我没有按计划进行更改,因此也将它们还原了.我可以找回那个内容吗?

Unfortunatelly I hadn't committed my intended changes so they were reverted as well. Can I get that content back?

推荐答案

您没有指定--no-backup,因此实际文件旁边应该有备份文件.

You did not specify the --no-backup, so there should be backup files right next to the actual file.

支持此操作的文档

修改后的文件在还原之前以.orig后缀保存.要禁用这些备份,请使用--no-backup.

Modified files are saved with a .orig suffix before reverting. To disable these backups, use --no-backup.

这篇关于如何撤销汞还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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