Created
September 19, 2013 07:00
-
-
Save benhoskings/6619930 to your computer and use it in GitHub Desktop.
Pushing specific git branches
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
git_current_branch() { | |
cat "$(git rev-parse --git-dir 2>/dev/null)/HEAD" | sed -e 's/^.*refs\/heads\///' | |
} | |
alias gpthis='gp origin $(git_current_branch)' | |
alias gpthis!='gp --set-upstream origin $(git_current_branch)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment