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