Is there a way to write an alias that merges a branch back to its parent? I know I can do:
git checkout - && git merge -
But it only works in simple cases when my previous branch is the parent branch.
As far as I know git does not track this kind of information because there is no branches in there. But I hope it's already implemented as a plugin or a hookset.
Thanks in advance.