Suppose I have a chain of local git branches, like this:
master branch1 branch2
| | |
o----o----o----A----B----C----D
<
This question is a subset of Modify base branch and rebase all children at once
I recently started using git-chain which is a tool to solve this problem.
Basically you specify a chain
git chain setup -c myfeature master branch1 branch2
Once this chain is set up, you can pull in commits from master, then you can run git chain rebase -c myfeature and the tool figures out all the refs and rebases everything nicely for you.
As an added benefit, it also calculates and handles any amendments or new commits to branch1 and branch2.