Use gpo
to push your current branch to origin:
alias gpo='git push -u origin $(git rev-parse --abbrev-ref HEAD)'
Four key strokes is way better than 20+. For more of my favorite aliases, check out my dotfiles.
WordPress, better cities, and everything else
Use gpo
to push your current branch to origin:
alias gpo='git push -u origin $(git rev-parse --abbrev-ref HEAD)'
Four key strokes is way better than 20+. For more of my favorite aliases, check out my dotfiles.
One Comment
I _think_ you can achieve the same thing with `git push -u origin HEAD`.
See http://stackoverflow.com/questions/23241052/git-push-origin-head