Keeping a fork up to date
46 words
One minute
Clone your fork:
1
| git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
|
Add remote from original repository in your forked repository:
1
2
3
| cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
|
Updating your fork from original repo to keep up with their changes:
1
| git pull upstream master
|