I'd like to improve my current aliases, most of them work over a branch. Is there a way to refer to the current branch in a git alias so I don't need to pass it each time?
like this one:
git config alias.po "push origin"
is use it like that:
git po foo_branch
I'd like to just run git po
and it to take the current branch as a parameter.
git push origin HEAD
be enough? I don't get the point in all this rev-parsing... what am I missing guys ? :-) – Donnetta