Skip to content

Instantly share code, notes, and snippets.

@rocarvaj
Created September 21, 2012 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocarvaj/3763517 to your computer and use it in GitHub Desktop.
Save rocarvaj/3763517 to your computer and use it in GitHub Desktop.
Git Notes
  • How to Push a New Local Branch to a Remote Git Repository

// The one sending branch

git push --set-upstream origin plugin

// The one wanting to use the branch

git fetch origin git checkout --track origin/plugin

http://www.mariopareja.com/blog/archive/2010/01/11/how-to-push-a-new-local-branch-to-a-remote.aspx

Links

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