Skip to content

Instantly share code, notes, and snippets.

@richardgill
Last active March 15, 2017 10:13
Show Gist options
  • Save richardgill/d43b0c0df54caee438b15c1616b78345 to your computer and use it in GitHub Desktop.
Save richardgill/d43b0c0df54caee438b15c1616b78345 to your computer and use it in GitHub Desktop.
How to Fork

Fork the main repo (button top right).

  • git clone <the fork repo>
  • git remote add upstream <the main repo>

git remote -v <- see the remotes you have now

Most work will be done against origin. e.g. git push origin my-branch

When you're ready to do a PR, do a PR from the fork repo to the main repo.

To get new code from upstream:

git pull upstream <branch>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment