Created
February 15, 2012 08:31
-
-
Save catchamonkey/1834446 to your computer and use it in GitHub Desktop.
git push to current branch
This file contains hidden or 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 push origin `git rev-parse --abbrev-ref HEAD` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pushes (to origin remote) the place your HEAD points to, i.e. the current branch you are on.
I use descriptive names for branches, this lets me always run the same command when I want to push one of them up.
I have it as a bash alias to git_push_current_branch