Forks
Create a fork
- Go to the repo’s page on GitHub
- Click the
Fork
button in the top-right
Clone your fork locally
cd ~/work/repos
git clone [email protected]:{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