git bisect

Description

Use binary search to find the commit that introduced a bug.

Command
git bisect
Examples
Start bisect
git bisect start
Mark good commit
git bisect good abc1234
Mark bad commit
git bisect bad def5678
Reset bisect
git bisect reset
Parameters
Parameter Type Required Description
start string No Start bisect process
good string No Mark current commit as good
bad string No Mark current commit as bad
reset string No Reset bisect state
Command Info
Category: Debugging
Type: Git
Views: 7
Status: Active
Tags
bisect debug binary-search bug-finding