git bisect

Binary search for a bad commit

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Finds the commit that introduced a bug. See the flags and examples below, and run `man git` for the full reference.

Common flags
FlagMeaning
startBegin
goodMark good
badMark bad
resetEnd
Examples
git bisect startBegin · explain & risk-check →
Related
git log
Open the full explainer →More in Git

Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.