10 · Version Control

Bisect

Find the commit that broke it

An automated binary search through history: git checks out a commit halfway between a known-good and known-bad point, over and over, until it pinpoints the one that introduced a bug.

Concrete example

Something broke in the last 200 commits — bisect finds the culprit in about eight steps.

Why it matters

Turns “when did this break?” from hours of guessing into minutes.