Stoic
Stoic

Reputation: 10754

Rebase Git commit history

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?

Upvotes: 1

Views: 166

Answers (1)

Stoic
Stoic

Reputation: 10754

OK. Read the manual, and found this:

git rebase --onto develop feature1 feature2

Upvotes: 3

Related Questions