Skip to content

Instantly share code, notes, and snippets.

@kampfgnu
Created April 24, 2013 08:10
Show Gist options
  • Save kampfgnu/5450486 to your computer and use it in GitHub Desktop.
Save kampfgnu/5450486 to your computer and use it in GitHub Desktop.
push local git branch to remote and set upstream
git push origin <branchname>
git branch --set-upstream <branchname> origin/<branchname>
@akakira
Copy link

akakira commented Aug 4, 2016

you can just type git push -u origin <branchname> that pushes and sets the remote for your local branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment