git remote add upstream <git repository> git fetch upstream git checkout master git merge upstream/master