Mercurial:回滚 "hg commit --amend"。

标签 mercurial

我不小心做了一个“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/

相关文章:

mercurial - 如何删除 hg 中文件的更改

mercurial - 使用像 Bitbucket 这样的免费 Mercurial 托管的问题

mercurial - 一个 Mercurial 存储库可以驻留在另一个 Mercurial 存储库中吗?

mercurial - HG : Checkout 'tipmost' tag

mercurial - 无法在 Windows 上克隆 Mercurial 存储库,但可以在 Linux 上克隆

svn - 仅限本地,修订版/版本/源代码控制

ubuntu - 在 ubuntu 上设置一个 mercurial 服务器

git - DVCS 在远程服务器上工作

visual-studio-2010 - 如何将现有的 VS 项目添加到 Mercurial(使用 TortoiseHG 或 VirtualHG)

mercurial - 如何匿名化 mercurial 存储库?