Bisect
Bisect is a powerful Git debugging tool that uses binary search algorithm to find a specific commit that caused a bug in the code, instead of searching through every commit individually.
Use Cases:
Examples:
Starting Bisect:
git bisect start
Declaring the most recent bad commit:
git bisect bad (optional [commit ID])
Declaring the commit where everything worked:
git bisect good [commit ID]
Keep checking the given commits, if the bug is still there:
git bisect bad
Keep checking the given commits, if the bug is NOT there:
git bisect good
To exit git bisect:
git bisect reset, and continue as needed