There's an even shorter, nicer-to-read version at http://robots.thoughtbot.com/keeping-a-github-fork-updated