複製 GitHub 上建立的 repo
$ git clone git@github.com:enhao/enhao.github.io.git cheatsheet $ cd cheatsheet增加和更新 Lanyon 的 repository
$ git remote add lanyon git@github.com:poole/lanyon.git $ git remote update $ git branch -a * master remotes/lanyon/gh-pages remotes/lanyon/master remotes/origin/HEAD -> origin/master remotes/origin/master合併 Lanyon 的 repo 到 master
$ git checkout master $ git merge remotes/lanyon/master上傳到 GitHub Pages 的 repo
$ git push origin master上傳到增加的 repo
$ git push lanyon master參考