【发布时间】:2018-06-03 00:59:28
【问题描述】:
假设我正在经历一个 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(git-scm.com/docs/git-bisect#_bisect_log_and_bisect_replay)
标签: git git-bisect bisect