Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created March 23, 2013 20:45
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinburke/5229284 to your computer and use it in GitHub Desktop.
Save kevinburke/5229284 to your computer and use it in GitHub Desktop.
Push the current branch to origin
push_branch() {
branch=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
git push $1 $branch
}
autoload push_branch
alias gpo='git push origin'
alias gpom='git push origin master'
alias gpob='push_branch origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment