What problem does it solve? Git history mistakes—bad commits, botched rebases, deleted branches, dropped stashes—can destroy work or leave a repository in a confusing state. This Skill provides safe, verified procedures for rewriting history and recovering lost work without making the damage worse. ## Core Features & Use Cases - History Rewriting: Run unattended interactive rebases (squash, reword, reorder, fixup) via GIT_SEQUENCE_EDITOR, or fully scripted rewrites with git commit-tree and git update-ref, verified by comparing tree hashes. - Recovery Operations: Rescue lost commits and branches with git reflog, recover dropped stashes via git fsck --unreachable, and choose correctly between git revert (pushed) and git reset (local). - Regression Hunting: Drive git bisect between known-good and bad commits to locate the source of a regression. - Use Case: You accidentally ran git reset --hard and lost a branch with a day of work. Use the reflog procedure to find the orphaned sha and restore it with git branch rescue/<name> <sha>. ## Quick Start Help me recover a branch I accidentally deleted after a bad rebase, and verify nothing was lost.