- Start the search
git bisect startGit now waits for you to point out one bad commit and one good commit.
- Mark the current commit as broken
git bisect bad - Mark a commit you know worked
git bisect good v1.2.0Git jumps to a commit halfway between the two. Check whether the problem is there.
- Tell Git if this commit works or not
git bisect goodRun git bisect bad instead if the problem shows up. Repeat on each commit Git picks until it names the first bad commit.
- Let a script do the checking
git bisect run npm testOptional. The script should exit with 0 when things work and 1 when they are broken. Git then finds the bad commit on its own.
Check it worked
- See every answer you gave so far
git bisect log
Undo it
- Stop and go back to where you started
git bisect reset
- Start the search
git bisect startGit now waits for you to point out one bad commit and one good commit.
- Mark the current commit as broken
git bisect bad - Mark a commit you know worked
git bisect good v1.2.0Git jumps to a commit halfway between the two. Check whether the problem is there.
- Tell Git if this commit works or not
git bisect goodRun git bisect bad instead if the problem shows up. Repeat on each commit Git picks until it names the first bad commit.
- Let a script do the checking
git bisect run npm testOptional. The script should exit with 0 when things work and 1 when they are broken. Git then finds the bad commit on its own.
Check it worked
- See every answer you gave so far
git bisect log
Undo it
- Stop and go back to where you started
git bisect reset
- Start the search
git bisect startGit now waits for you to point out one bad commit and one good commit.
- Mark the current commit as broken
git bisect bad - Mark a commit you know worked
git bisect good v1.2.0Git jumps to a commit halfway between the two. Check whether the problem is there.
- Tell Git if this commit works or not
git bisect goodRun git bisect bad instead if the problem shows up. Repeat on each commit Git picks until it names the first bad commit.
- Let a script do the checking
git bisect run npm testOptional. The script should exit with 0 when things work and 1 when they are broken. Git then finds the bad commit on its own.
Check it worked
- See every answer you gave so far
git bisect log
Undo it
- Stop and go back to where you started
git bisect reset

New to commit? I explain it in plain English on Layman Terms.