Skip to content

Instantly share code, notes, and snippets.

@radiocontrolled
Created June 11, 2019 10:17
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 radiocontrolled/cd76e4398af167226659bf00920b91a8 to your computer and use it in GitHub Desktop.
Save radiocontrolled/cd76e4398af167226659bf00920b91a8 to your computer and use it in GitHub Desktop.
commit flow

On branch (e.g. master), do

git checkout -b my_branch_name # create a new branch
git status # check that your're on new branch, and if there's anything to commit
git add . # add everything, or alternatively, add one by one
git commit -m 'my commit message"
git push # at this point... git will respond by saying did you mean "git push --set-upstream origin my_branch_name", so follow that command to complete pushing your local branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment