Skip to main content

Git Bisect Guide

v1.0.3

Generate command guides for debugging regressions with git bisect.

Generates step-by-step command guides for debugging regressions using git bisect — enter the known-good and known-bad commit references and get the exact commands to run.

How to use
  • Enter the last known-good commit hash and the first known-bad commit hash.
  • Follow the generated bisect workflow commands in order.
  • Use the test-script mode to automate bisect with a shell command.
Bisect Session Commands
# 1. Start bisect session
git bisect start
git bisect bad HEAD
git bisect good v1.0.0

# 2. Manual mode — test each commit, then mark as good or bad

#   If current commit does NOT reproduce the bug:
git bisect good

#   If current commit DOES reproduce the bug:
git bisect bad

#   Repeat until git identifies the first bad commit

# 3. Reset HEAD back to original branch
git bisect reset

# Optional: replay the bisect log
git bisect log