gpt4 book ai didi

mercurial - HG:撤消历史记录的提交

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

我有一个HG版本库,版本分别为1、2、3、4、5和6。

当我提交修订版4时,我不知不觉地破坏了我不应该进行的修订版3中的某些更改。在提交修订版6之前,我没有注意到这一点。

我需要撤消第4版中的更改,但之后要重新应用所有其他更改。基本上撤消提交#4。我怎样才能做到这一点?

最佳答案

你想要hg backout

Revert/undo the effect of an earlier changeset...

Backout works by applying a changeset that's the opposite of the changeset to be backed out. That new changeset is committed to the repository, and eventually merged...

关于mercurial - HG:撤消历史记录的提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5913424/

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