Rebasing and Stacked Branch Answers
Fixes for rebasing stacked branches, squash merges and keeping dependent branches current.
A stack is a chain of branches where each one builds on the one below. Rebasing a stack by hand is where most of the pain is. Each answer below covers one situation.
Rebase a Stacked Branch After a Squash Merge
After the bottom branch of a stack is squash merged, rebase the next branch with git rebase --onto so its parent's commits are not replayed.
Rebase a Whole Stack With --update-refs
Use git rebase --update-refs to rebase a whole stack of branches in one command, so every branch in the stack moves with its commits.