Skip to content

Instantly share code, notes, and snippets.

@sammatuba
Last active July 4, 2019 17:30
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 sammatuba/c410095f8331deb37ae74071c8ac4aef to your computer and use it in GitHub Desktop.
Save sammatuba/c410095f8331deb37ae74071c8ac4aef to your computer and use it in GitHub Desktop.
git cheatsheets

how to push a local drafts branch to local master branch and remote master branch

git checkout drafts
git branch --set-upstream-to master

git push . HEAD:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment