If I have a set of branches with common ancestor commit a, is there an easy way to rebase all of them onto commit b (where the common ancestor of a and b might be some third commit c)?
1 Answer
Yes. Just rebase them all.
If you anticipate repeated conflicts, enable git-rerere, which records your conflict resolutions and is able to automatically apply the same resolution when merge encounters the exact same conflicts in another (re)merge.
Or you could,
Isolate commit
ain a branchgit checkout -b temporary <commita>Rebase the
temporarybranch onto commitb.Rebase all the 'related' branches onto the resulting branch
temporary
aon each branch, or the commits sincecon each branch?