Created
March 23, 2013 20:45
-
-
Save kevinburke/5229284 to your computer and use it in GitHub Desktop.
Push the current branch to origin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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