我不小心做了一个“hg commit --amend”而不是一个提交。如何在修改之前回滚提交?
最佳答案
注意:此答案现已弃用。见 the answer来自@Sorina Sandu。
见 hg help commit
,它说:
The --amend flag can be used to amend the parent of the working directory with a new commit that contains the changes in the parent in addition to those currently reported by "hg status", if there are any. The old commit is stored in a backup bundle in ".hg/strip-backup" (see "hg help bundle" and "hg help unbundle" on how to restore it).
关于Mercurial:回滚 "hg commit --amend"。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16697393/