Notes git bisect

source : https://opensource.com/article/22/11/git-bisect

Using Git bisectUsing the git bisect command is very straightforward:

git bisect start git bisect bad # Git assumes you mean HEAD by default git bisect good <ref> # specify a tag or commit ID for <ref>

Git checks out the commit in the middle and waits for you to declare either:

git bisect good ## or git bisect bad

Then the bisect tool repeats checking out the commit halfway between good and bad commits until you tell it:

git bisect reset

Advanced users can even write scripts that determine good and bad states as well as any remediation actions to take upon finding the specific commit. You might not use the git bisect command every day of your life, but when you need it, it is a lifesaver.