Created
April 24, 2013 08:10
-
-
Save kampfgnu/5450486 to your computer and use it in GitHub Desktop.
push local git branch to remote and set upstream
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 push origin <branchname> | |
git branch --set-upstream <branchname> origin/<branchname> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can just type git push -u origin
<branchname>
that pushes and sets the remote for your local branch