Created
August 11, 2014 14:57
-
-
Save peregrinogris/bf92248a93ecdbf800dd to your computer and use it in GitHub Desktop.
Push the current branch to remote origin and make it track the newly created remote branch.
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
#!/usr/bin/env bash | |
branch=`git branch | grep '*' | awk '{print $2}'` | |
git push -u origin $branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment