Begin a binary search to find the commit that introduced a bug.
Section: Recovery and Debugging
Start a bisect session
bash
bash
git bisect start && git bisect bad && git bisect good <known_good_commit>Explanation
`git bisect` uses binary search over commit history to isolate the commit that changed a known property, commonly a bug introduction.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Recovery and Debugging
Show reflog with local timestamps
Inspect branch and HEAD movements with readable times.
Check repository integrity
Verify object connectivity and repository health.
Interactive rebase last 5 commits
Open the last 5 commits in the interactive rebase todo list.
Cherry-pick a range without committing
Apply commit changes into the index and working tree first.
Amend last commit without changing message
Replace the most recent commit using the current staged changes.