git/bisect

Binary Search

Use binary search to find the commit that introduced a bug

git
bisect
search

Command

git bisect

Explanation

git bisect is used to use binary search to find the commit that introduced a bug. It uses the binary search to find the commit that introduced the bug.

Examples

Start bisect session

git bisect start

Mark current commit as bad

git bisect bad

Mark known good commit

git bisect good abc123