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"
git po foo_branch
This answer will be valid starting from Git 2.0, where the default push behaviour will be
push.default setting is set to
git push without specifying argument will always push the current branch, so in this case you don't need to specify it.