Skip to content

Instantly share code, notes, and snippets.

@hartsock
Created February 2, 2017 17:06
Show Gist options
  • Save hartsock/39aef4705de7b7d27f010f92fb5d67da to your computer and use it in GitHub Desktop.
Save hartsock/39aef4705de7b7d27f010f92fb5d67da to your computer and use it in GitHub Desktop.
Standard GitHub Practice
git clone [email protected]:[your fork of the upstream repo]
cd [repo name]
git remote add upstream https://github.com/[upstream repo]
git fetch --all
git pull upstream master
git push origin master
git checkout -b issue12345
# ... edit files ...
git commit -a -m 'fixed issue12345'
git push -u origin issue12345
git checkout master
git fetch --all
git pull upstream master
git push origin master
# ... do pull request in github UI ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment