原文:Keeping A GitHub Fork Updated
$ git clone git@github.com:croaky/dotfiles.git
$ cd dotfiles
$ git remote add upstream git@github.com:thoughtbot/dotfiles.git
$ git fetch upstream
$ git rebase upstream/master
//假如对upstream有commit的权限的话
$ git checkout -b upstream upstream/master