Skip to content

Instantly share code, notes, and snippets.

@koriroys
Created April 4, 2012 17:34
Show Gist options
  • Save koriroys/2304137 to your computer and use it in GitHub Desktop.
Save koriroys/2304137 to your computer and use it in GitHub Desktop.
Push a new branch
# create & checkout branch in one step
$ git checkout -b branch_name
# push new branch to remote repo
$ git push remote_repo_name branch_name
# example of above:
$ git push origin branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment