ok, this looks so simple but I can't find an easy solution. Let's say there are two branches:
a - b - c - d - e - f <current_branch>
\
g - h - i <temp_branch>
I simply want all missing commits in <temp_branch>
to be on top of <current_branch>
without touching <temp_branch>
and without merge commit:
a - b - c - d - e - f - g' - h' - i' <current_branch>
\
g - h - i <temp_branch>
What didn't work:
git rebase
: I could first rebase<temp_branch>
on top of<current_branch>
and merge back fast-forward. But that's not what I want and it is too complicated.git cherry-pick
: if there is no automatic way, manually looking up the commit-range is required
A simple one-liner would be great, like
git rebase --reverse-order temp_branch HEAD
Or some other command I don't know of?