I branched feature
off of master
a few days ago and hacked away, putting my commits into feature
. master
(and origin/master) never moved, so, if I were on master
, I could fast-forward to feature
. But I'm on feature
. Obviously it isn't hard to checkout master
and merge it to feature
, but is there a way I can fast forward a parent branch to my working branch while on my working branch?
From:
|--|--| << master
\
\
|--|--| << feature (checked out)
^
HEAD
git magic-command
|--|--|
\
\
|--|--| << master (checked out), feature
^
HEAD
Just trying git merge master
returns 'Already up-to-date', and rebase doesn't make sense since replaying that work would leave me in the exact same state. I guess I could git reset master
or something, but that seems hacky.