Easiest way to rebase multiple branches in a single lineage
问题 I have a two branches that I keep on top of upstream/master. One branch has the other as an ancestor so they form a line. U1 (upstream/master) \ A -- B (fixes) \ C -- D (features) Later, upstream/master moves forward... U1 -- U2 (upstream/master) \ A -- B (fixes) \ C -- D (features) ... and I want to rebase both branches on top. U1 -- U2 (upstream/master) \ A' -- B' (fixes) \ C' -- D' (features) I know two ways to do it, each with drawbacks. git rebase upstream/master fixes git rebase fixes