Find the exact commit that introduced a bug. Use when something worked before and broke, and you don't know which change did it.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Find the exact commit that introduced a bug. Use when something worked before and broke, and you don't know which change did it.
when_to_use
"it worked last week", a regression, unclear which commit broke it
targets
["*"]
Bisect the Regression
Find a known-good commit and a known-bad one. Confirm both by actually checking out and testing.
git bisect start; git bisect bad <bad>; git bisect good <good>.
At each step, run the SMALLEST test that distinguishes good from bad. Mark git bisect good/bad.
When git names the first bad commit, read its diff. The bug is in those lines - don't guess elsewhere.
git bisect reset. Report: the commit, the line, the one-sentence cause.
Automate it: git bisect run ./repro.sh if you have a script that exits non-zero on the bug.