Skip to content

Instantly share code, notes, and snippets.

@goodviber
Created February 1, 2018 14:51
Show Gist options
  • Save goodviber/d930cc5b549fdb84f06769a94c954c45 to your computer and use it in GitHub Desktop.
Save goodviber/d930cc5b549fdb84f06769a94c954c45 to your computer and use it in GitHub Desktop.
new local and remote branch
git checkout -b <branch>
Edit files, add and commit. Then push with the -u (short for --set-upstream) option:
git push -u origin <branch>
Git will set up the tracking information during the push.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment