Git History Recovery

Gets back commits, branches, stashes or a force-pushed tip that look gone. Freezes the repository first (gc.auto off, a copy of .git), then searches cheapest to costliest: reflog and ORIG_HEAD, fsck for dropped stashes and unreachable commits, the hosting push event or a teammate's remote-tracking ref for a force push. Restores onto a new branch, never by resetting the damaged one, proves completeness with diff and range-diff, and says what git cannot recover. Use whenever someone says "I ran reset --hard and lost my commits", "I dropped the wrong stash", "my rebase ate half the branch", "someone force-pushed over main", "detached HEAD and my work vanished". Not for a rebase to redo on a new base (branch-rebase-repair), deliberately destroying history (git-history-purge), or a program fault (debugging).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 42e985d617

Frequently asked questions

npx get-skill add greenblacked/git-history-recovery