sync fork with upstream code example
Example 1: setting the upstream for a fork github
git remote add upstream https://thehttpslinkgoeshere.git
Example 2: update my fork repository at github
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
git checkout master
git rebase upstream/master
Example 3: git pull updates from fork
$ cd github-services
$ git remote add upstream git://github.com/pjhyett/github-services.git
$ git fetch upstream
$ git merge upstream/master master
$ git rebase upstream/master