$ git checkout gh-pages-upstream $ git pull --rebase $ git checkout master $ git merge -s subtree gh-pages-upstream