git clone https://github.com/{$YOUR_USER_NAME}/{$YOUR_FORKED_REPO}.git
cd /path/to/fork
git remote add upstream https://github.com/{$UPSTREAM_USER_NAME}/{$UPSTREAM_REPO}.git
git fetch upstream
git pull upstream master
git push origin master