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)?
If I have a set of branches with common ancestor commit a , is
Share
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 branchRebase the
temporarybranch onto commitb.Rebase all the ‘related’ branches onto the resulting branch
temporary