gpt4 book ai didi

mercurial - 如何撤消 `hg pull`?

转载 作者:行者123 更新时间:2023-12-02 21:33:34 26 4
gpt4 key购买 nike

我不小心执行了 hg pull,它在我的本地存储库中创建了一个分支。

撤消该操作并使我的本地存储库恢复到之前的状态最简单的方法是什么?

最佳答案

hg 回滚 但请注意警告:

This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback. It will also restore the dirstate at the time of the last transaction, losing any dirstate changes since that time. This command does not alter the working directory.
...

关于mercurial - 如何撤消 `hg pull`?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3630053/

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