Tell bisect the current checked-out commit contains the bug.
Section: Bisect Workflows
Mark current commit as bad
bash
bash
git bisect badExplanation
Each classification halves the remaining search space.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Bisect Workflows
Start bisect with good and bad revisions
Initialize bisect and mark boundaries.
Mark current commit as good
Tell bisect the current checked-out commit does not contain the bug.
Automate bisect with a test script
Let Git drive bisect using a command exit code.
Skip an untestable bisect revision
Tell bisect to avoid the current commit.
Cherry-pick one commit
Apply the changes introduced by one commit onto the current branch.