gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 10:09:10 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com