I would like to append the commits of another branch to my current branch:
A---B---C feat_A*
/
o---o---o---o master
\
D---E---F feat_B
A---B---C---D'--E'--F' feat_A*
/
o---o---o---o master
\
D---E---F feat_B
However, doing a git rebase feat_B
results in D---E---F---A'--B'--C'
.
Another option would be to do
git checkout feat_B
git rebase feat_A
which results in the correct order A---B---C---D'--E'--F'
but then these commits are in feat_B instead of feat_A.
How can I get git-rebase to append the commits of another branch onto the current one?