如何终止 Git 二分法

我通过指定好的和坏的修订来开始我的 git 对分,但是我认为它们没有被注意到。另外,由于我试图指定 git 对分的好和坏,我不认为 git 正在做任何事情。我想中止整个对分,这样我就可以重新开始操作。git bisect reset似乎是我要寻找的,但我想再次检查之前,可能会搞砸任何东西。

12207 次浏览

git bisect reset is the correct command. From the documentation:

After a bisect session, to clean up the bisection state and return to the original HEAD, issue the following command:

$ git bisect reset

By default, this will return your tree to the commit that was checked out before git bisect start. (A new git bisect start will also do that, as it cleans up the old bisection state.)