git-bisect is part of the git CM software. It is used to find which change broke something.
Questions tagged [git-bisect]
101 questions
1
vote
1 answer
"git bisect" tries to test an unexpectedly large number of revisions
When I run:
git bisect start
I get:
Bisecting: 9727 revisions left to test after this (roughly 13 steps)
But the bad_commit and good_commit I specified are clearly only around 50 commits back in history. I did a "git…

Chuque
- 587
- 1
- 5
- 22
1
vote
0 answers
Why git bisect suggests rather strange commits?
I want to use git bisect to fix some bugs.
git clone git@github.com:pingcap/tidb-engine-ext.git
git checkout raftstore-proxy
git bisect start
git bisect good 45ce5b9584d618bc777877be8a77cb94f61b8410
git bisect bad…

calvin
- 2,125
- 2
- 21
- 38
1
vote
1 answer
Reverting after git bisect
I'm doing a calculator project. In that, I've to find the bad commit using the git bisect and remove that commit using git revert. The resultant has to be staged, commit and pushed to the remote repo.
Using git bisect, I found the bad commit.
Then…

Shane Thomas
- 15
- 1
- 5
1
vote
2 answers
Cannot replay git bisect: "error: couldn't get the oid of the rev"
I am attempting to replay a git bisect from an edited log to undo a mistake I made.
I mistakenly marked one of the commits as good when it should have been bad (or vice versa). I ran:
git bisect log > C:\temp\bisect.log
# Alternatively
git bisect…

chwarr
- 6,777
- 1
- 30
- 57
1
vote
1 answer
Test command inside git bisect run script doesn't work
I'm using git bisect to find out a version in which the VERSION file has changed from 0.0.1_testing to newer version and I want to use bisect run like this.
git bisect run sh -c 'if [ "$(cat VERSION)" == "0.0.1_testing" ] ; then exit 0 ; else exit…

second32
- 83
- 1
- 9
1
vote
1 answer
git bisect blaming unrelated commit
I had a situation at work where we have a git repo with ~80 active users working on.
There was a commit #1 on feature branch modifying a file. Branch was merged into master.
Some later time I have found that change introduced by commit #1 is missing…

Michał Walenciak
- 4,257
- 4
- 33
- 61
1
vote
1 answer
I forgot to do git bisect reset: what are the consequences?
I was tracking down a problem in my codebase with git bisect and I forgot to do a reset at the end. I'm now on another branch, in the middle of my work. What happens if I do it now? Do I need to wait until I'm done with this branch?

iconoclast
- 21,213
- 15
- 102
- 138
1
vote
1 answer
How to remove the label after bisecting
I tried to run a bisect to locate an issue and when it's done I called git bisect reset:
$ git bisect reset
We are not bisecting.
But then the label of good is still there, how can I remove this label?
It shows something like this in git…

fluter
- 13,238
- 8
- 62
- 100
1
vote
1 answer
How to see refs/bisect/bad?
Some documentation for git-bisect says, "The reference refs/bisect/bad will be left pointing at that commit." I'm not sure what a "reference" is.
How do I see what refs/bisect/bad refers to?
I checked How to use git bisect? but I don't think it…

Michael Osofsky
- 11,429
- 16
- 68
- 113
1
vote
1 answer
Git bisect one folder
I'd like to use git bisect to debug a Django web-app I'm working on. However, reverting to old commits would break the entire site because the database schema changes so often. I'd like to be able to run git bisect so that it only checks out one…

camden
- 1,908
- 19
- 18
1
vote
1 answer
How can I ignore a directory when doing a Git bisect?
I have a production build directory which often conflicts when merging branches. That's a separate issue. I need to find a problem in the commit history using Git bisect, but I get the following error:
Bisecting: a merge base must be tested
error:…

isherwood
- 58,414
- 16
- 114
- 157
1
vote
2 answers
Git bisect with jenkins
Jenkins 2.X got really nice - wonder if it is now somehow possible to do a git bisect with it. Currently commits are bundled to jobs depending on when jenkins saw then - which is OK when the job passes. But when the job fails it would be good if…

ligi
- 39,001
- 44
- 144
- 244
1
vote
2 answers
During git bisect, is it safe to run only failing tests? or we should run all tests?
When I use the git bisect command, I run only the failing tests at
each bisection point for Java programs. However, I see that many tutorials related to git bisect propose running "make; make test". Is there any reason why I should run all the…

Ripon Saha
- 43
- 6
1
vote
1 answer
Create new JUnit test and run with git bisect
If I get a bug report that says "Since this release I cannot longer enter negative values" then I would like to create a JUnit test for this.
@Test
assertCanPutNegative(){}
This testcase I would like to run on the latest 10 commits for example by…

Viktor Mellgren
- 4,318
- 3
- 42
- 75
1
vote
1 answer
Git bisect to wrong result
I'm using git bisect to find a bad commit for linux boot failure.
And the current known bad commit is :
commit 0f3f4fef3520fe888303886b62224bac7a837cac
Author: Darren Hart
Date: Mon Mar 2 09:06:39 2015 -0800
Add manifest…

Chen
- 105
- 6