I ran into a strange issue when trying to use git-bisect
to find a particular change in the jquery git repository: the bisect command seems to create modified files that prevent the bisect process from continuing. These are the commands I ran first:
git clone https://github.com/jquery/jquery.git
cd jquery
git bisect start
git bisect bad
git bisect good 2aa67026ebe6bea90fd137fc99b4c9422977e3f0
At which point I get the output:
Bisecting: 1977 revisions left to test after this (roughly 11 steps)
[3e5520fbdc7231b3f38e145020b40524c1e6654d] Tagging the 1.4.3rc2 release.
But now, when I run git status
, the output is:
# 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
#
Four files show up as modified. If I then run git bisect bad
, I get an error saying that my local changes would be overwritten by checkout.
Am I doing something wrong or misunderstanding how git-bisect
works? Any workarounds for this issue? Thanks!