Skip to content

Instantly share code, notes, and snippets.

@vicneanschi
Created April 4, 2017 13:46
Show Gist options
  • Save vicneanschi/26a23668a9b4e5cbcf68379505b7617f to your computer and use it in GitHub Desktop.
Save vicneanschi/26a23668a9b4e5cbcf68379505b7617f to your computer and use it in GitHub Desktop.
git commands
In Git 1.7.0 and later, you can checkout a new branch:
git checkout -b <branch>
Edit files, add and commit. Then push with the -u 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