Find the commit that broke a feature using git bisect
8 steps · about 1 h 41 min · Intermediate
- A Beginner's Guide to git bisect: The Process of Elimination (tutorial, Metal Toad, 12 min)
Walks through marking good and bad commits step by step so binary search feels concrete before you automate it.
- Confusing git terminology (article, Julia Evans, 12 min)
Clarifies HEAD, commits, and parent pointers so you know what state git bisect checks out at each step.
- Git Documentation: Fighting regressions with git bisect (doc, Git, 20 min)
Covers bisect skip for unbuildable commits, bisect run with automated exit codes, and narrowing paths.
- Git Documentation: git-rev-list (reference, Git, 15 min)
Explains commit ranges and ancestry filtering when you need to find a reliable starting good commit.
- Git Documentation: git-describe (reference, Git, 10 min)
Shows how to map a suspect commit hash back to the nearest release tag or build version.
- Git Documentation: git-diff-tree (reference, Git, 10 min)
Helps you inspect the exact files changed by the offending commit once bisect identifies it.
- Git Documentation: git-range-diff (reference, Git, 12 min)
Compares commit series before and after a rebase when a regression appeared during branch cleanup.
- GitHub Docs: About Git rebase (doc, GitHub Docs, 10 min)
Explains linear vs merge history so you understand why merge commits affect bisect steps.