hg:如何还原(单个文件)多个提交? [英] hg: How do I revert (a single file) several commits back?
本文介绍了hg:如何还原(单个文件)多个提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
The closest answer is this one, and here's a line from it:
hg revert -r <oneRevBack> fileName
最后一件事情是获取<oneRevBack>
,而不是使用哈希.我梦想只是输入<-1>
.
The last thing is to get <oneRevBack>
other than using hash. I would dream of just typing <-1>
.
推荐答案
一次修订"的hg语法是tip^
,其中tip
是最新的修订版,而^
则是父级".如果您的工作目录不在顶部,请使用.^
,其中的点表示当前版本".
The hg syntax for "one rev back" is tip^
, where tip
is the latest revision and ^
means "parent". If your working directory is not at tip, use .^
, where the dot means "current revision".
这篇关于hg:如何还原(单个文件)多个提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文