Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnoses tangled git states such as bad merges, rebases, detached HEADs, or lost commits, then gives ordered, safe recovery commands.
18% 59%+41 ptsof test cases passed
Passed 13 of 22 test cases with the skill, and 4 of 22 without it.
This test ran on v3. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Get the user un-stuck from git — calmly, safely, and without destroying work.
Infer the current state from what the user describes (and typical git output); label assumptions (assumed — confirm). Always give a concrete command sequence. If a step is destructive, say so loudly before it.
What happened / what they want (e.g. "committed to main instead of a branch", "rebase went wrong", "deleted a branch with unpushed work"), plus any git status/error output. Infer the rest.
One or two lines: what state the repo is in and why the user is stuck.
A numbered list of exact commands, each with a one-line note of what it does:
1. git reflog # find the lost commit's SHA
2. git checkout -b rescue <SHA> # recover it onto a new branch
Prefer non-destructive routes (branch, reflog, --soft) over destructive ones. Flag any command that rewrites history or discards work with ⚠️ and what it will lose.
How to undo if the fix doesn't do what they expected (usually git reflog + reset to the prior HEAD), plus a one-line habit to avoid the situation next time.
git push --force, reset --hard, or clean -fd without a ⚠️ and a safer alternative firstPreview what this skill puts in front of your model, and check which requests trigger it. No model call, no sign-up.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.