In the pack: ChatGPT, Claude & Gemini Prompts for Coding and Developers
Find the Breaking Commit With git bisect
Prompt
Language and test tooling: {{LANGUAGE}}
The regression (what used to work, what happens now): {{REGRESSION}}
A commit or tag I know was good, and one I know is bad: {{GOOD_AND_BAD}}
How I currently check for the bug (manual steps or a command): {{CHECK_METHOD}}
Give me:
1. The exact bisect commands to start, mark good and bad, and finish (including `git bisect reset`).
2. A check script for `git bisect run`: exit 0 when the commit is good, 1 when bad, and 125 to skip commits that can't be built or tested. Reinstall dependencies only if needed.
3. An estimate of how many steps the bisect will take, from the commit count (I'll paste `git rev-list --count GOOD..BAD` if you ask).
4. Pitfalls: flaky checks giving wrong answers, merge commits, database migrations or generated files that differ between commits, and how to handle each.
5. What to do once it names a commit: how to read the diff for the cause, and how to confirm by reverting that commit alone on the bad version.
Keep the check script short and safe: no pushing, no destructive commands, and nothing that touches shared environments.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Find the Breaking Commit With git bisect” is a free prompt for ChatGPT in the Coding & Software category, 213 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 4 placeholders to fill in first:
{{LANGUAGE}}, {{REGRESSION}}, {{GOOD_AND_BAD}}, {{CHECK_METHOD}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: ChatGPT, Claude, Gemini.
0 upvotes, sent to an AI tool 0 times, viewed 3 times.
Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.