gpt4 book ai didi

git - 撤消 git bisect 错误

转载 作者:IT王子 更新时间:2023-10-29 01:18:31 24 4
gpt4 key购买 nike

我正在通过命令行执行非自动 git bisect。一切都很顺利,直到我不小心在命令历史记录的错误行上按回车键,我没有运行测试,而是运行“git bisect good”(或 bad)。糟糕 - 我还不知道应该将此提交标记为好还是坏,但这就是我所做的。

我可以撤消“git bisect good”命令,或者让 git 忘记它的结果,然后返回并为该提交运行测试吗?

最佳答案

来自git-bisect documentation :

Bisect log and bisect replay

After having marked revisions as good or bad, issue the following command to show what has been done so far:

$ git bisect log

If you discover that you made a mistake in specifying the status of a revision, you can save the output of this command to a file, edit it to remove the incorrect entries, and then issue the following commands to return to a corrected state:

$ git bisect reset
$ git bisect replay that-file

关于git - 撤消 git bisect 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8594758/

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