git clone your_repo git remote add upstream origin_repo git fetch upstream git checkout master git merge upstream/master