Find the commit that introduced a bug

Bash

Binary search across history. Mark a known good and a known bad commit and git narrows it down for you.

git bisect start
git bisect bad                 # current HEAD is broken
git bisect good v1.4.0         # this tag was fine
# test, then: git bisect good | git bisect bad
git bisect reset

More in Git

Random picks