Save a dozen keystrokes on every new branch

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

Tom Willmot April 29, 2016 Reply

I _think_ you can achieve the same thing with `git push -u origin HEAD`.

See http://stackoverflow.com/questions/23241052/git-push-origin-head

Leave a Reply