Branch Rebase Repair

Rescues a branch whose rebase or merge produces dozens of bogus conflicts, usually because its base was squash-merged, cherry-picked or rewritten. Diagnoses first (the branch carries commits whose content already landed under other SHAs), finds the real boundary with merge-base --fork-point and the reflog, replays only your own commits with rebase --onto (--update-refs for a stack), turns on rerere, previews with merge-tree --write-tree, and proves nothing was lost with range-diff. Use whenever someone says "I rebased onto main and got 60 conflicts", "my stacked PR parent was squash merged", "my branch has the commits of a PR that already landed", "two-week-old feature branch won't rebase". Not for commits already lost (git-history-recovery), judging the diff (code-review), or restructuring code (refactoring).

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 1343fea086

Frequently asked questions

npx get-skill add greenblacked/branch-rebase-repair