What problem does it solve?
Rebase-stack enables teams to keep a clean, linear history when working with stacked branches by rebasing Branch B onto an updated base (Branch A or main) so that changes from the base integrate smoothly.
Core Features & Use Cases
- Base updates integration: Rebase Branch B onto Branch A when A has new commits to incorporate them without merging.
- Conflict-aware rebasing: Guides you through resolving conflicts and applying only unique changes from Branch B.
- History hygiene: Reduces merge noise by producing a linear commit history suitable for PR reviews.
Quick Start
From Branch B, rebase onto the latest base:
git fetch origin
git rebase --onto origin/branch-a $(git merge-base HEAD origin/branch-a) HEAD
If conflicts occur, resolve them, then continue:
git add <files>
git rebase --continue
git push --force-with-lease origin HEAD