Skip to content

Instantly share code, notes, and snippets.

@sojack
Last active June 29, 2017 20:57
Show Gist options
  • Save sojack/678997355bfecea7f75ddd3a90f4f1b6 to your computer and use it in GitHub Desktop.
Save sojack/678997355bfecea7f75ddd3a90f4f1b6 to your computer and use it in GitHub Desktop.
git contribution commands
fork project
clone locally
add upstream to original repo:
git remote add upstream <repo link>
git checkout master {make sure we are on the master branch}
git pull upstream master && git push origin master {sync local copy and forked repo with original}
git checkout -b <branch name> {create branch}
{work}
git push -u origin <branch name> {create pull request}
##
Fork the project & clone locally.
Create an upstream remote and sync your local copy before you branch.
Branch for each separate piece of work.
Do the work, write good commit messages, and read the CONTRIBUTING file if there is one.
Push to your origin repository.
Create a new PR in GitHub.
Respond to any code review feedback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment