我在尝试使用git-bisect
来查找 jquery git 存储库中的特定更改时遇到了一个奇怪的问题: bisect 命令似乎创建了阻止 bisect 进程继续进行的修改文件。这些是我首先运行的命令:
git clone https://github.com/jquery/jquery.git
cd jquery
git bisect start
git bisect bad
git bisect good 2aa67026ebe6bea90fd137fc99b4c9422977e3f0
此时我得到输出:
Bisecting: 1977 revisions left to test after this (roughly 11 steps)
[3e5520fbdc7231b3f38e145020b40524c1e6654d] Tagging the 1.4.3rc2 release.
但是现在,当我运行时git status
,输出是:
# Not currently on any branch.
# You are currently bisecting.
# (use "git bisect reset" to get back to the original branch)
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: build/google-compiler-20091218.jar
# modified: build/js.jar
# modified: test/data/text.php
# modified: test/delegatetest.html
#
四个文件显示为已修改。如果我然后运行git bisect bad
,我会收到一条错误消息,指出我的本地更改将被结帐覆盖。
我做错了什么或误解了它的git-bisect
工作原理吗?此问题的任何解决方法?谢谢!