Find a Regression with git bisect
git bisect start, thengit bisect bad(now) andgit bisect good <known-good-sha>.- Write a script that exits
0when the code is good and non-zero when it's broken. git bisect run ./check.sh— git binary-searches history and prints the first bad commit.git bisect resetwhen done to return to your branch.