假设我正在进行 Git Bisect,在运行
git bisect bad
命令后,我的 Git Bisect 被中断,如下所示:$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
error: Your local changes to the following files would be overwritten by checkout:
app/app.iml
Please commit your changes or stash them before you switch branches.
Aborting
我可以通过运行以下命令来轻松删除此文件:
git checkout -- app/app.iml
这将使我的git状态再次清洁..但我不确定之后该如何操作(即让git bisect继续二分).. 我相信我之前进行了git bisect bad
,但它跳过了一步或者做了我意想不到的事情。我只是想恢复我的git bisect操作..应该如何操作?
git bisect bad
没有生效,所以你需要再次运行它。如果你不确定,可以查看git bisect log
(https://git-scm.com/docs/git-bisect#_bisect_log_and_bisect_replay)。 - zigarn