How to undo a revert in mercurial [duplicate]

牧云@^-^@ 提交于 2019-12-07 05:36:18

问题


After I had accidentally added several files with

hg add

I wanted to revert that with

hg revert --all

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


回答1:


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

Documentation to support this

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



来源:https://stackoverflow.com/questions/16527125/how-to-undo-a-revert-in-mercurial

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!