cd <fork>
git checkout master
git fetch upstream
git rebase upstream/master
git push -f
This will make your fork match up with what's upstream
cd <fork>
git checkout master
git fetch upstream
git rebase upstream/master
git push -f
git clone <my-clone-of-upstream-repo>
cd <upstream-repo>
git remote add upstream <upstream-repo>
git config --global push.default simple
git checkout -b <new-branch>
git fetch upstream
git merge-base new-branch master => This will generate a commit hash
git rebase --interactive <commit hash>
git rebase upstream/master
git push -f