Git Bisect

Noun · Development

Definitions

  1. A Git command that performs a binary search through commit history to find the exact commit that introduced a bug. You mark a known-good commit and a known-bad commit, then Git checks out the midpoint for you to test. Finds the culprit in O(log n) steps — 1000 commits requires only ~10 checks.

    In plain English: A Git command that automatically finds exactly which commit broke something by testing halfway points.

    Example: "The test passed last week but fails now — run git bisect with the last known-good tag and it'll find the breaking commit in 8 steps."

Related Terms