Forks

Create a fork

  1. Go to the repo’s page on GitHub
  2. Click the Fork button in the top-right

Clone your fork locally

cd ~/work/repos
git clone git@github.com:{yourUsername}/{repoName}.git

Keep your fork updated

Add a remote called upstream to the original repo in your forked repo:

cd into/cloned/fork-repo
git remote add upstream git://github.com/{originalRepoUsername}/{repoName}.git
git fetch upstream

Pull from the origninal repo to stay updated with changes:

git pull upstream master