1

My current git history looks like this:

develop:  A -- B -- C
                     \
feature1:             D -- E
                            \
feature2:                    G -- H -- I

But, I would prefer this, instead:

feature2:             G' -- H' -- I'
                     /
develop:  A -- B -- C
                     \
feature1:             D -- E

Can someone help me with such a rebase, as well as explain the rebase command used for me, if possible?

4

1 回答 1

3

好的。阅读手册,发现:

git rebase --onto develop feature1 feature2
于 2013-01-01T18:56:35.887 回答