git pull from fork code example
Example 1: 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
Example 2: update fork
git fetch upstream
git checkout master
git merge upstream/master
git push origin
Example 3: steps to sync branch to fork master?
$ git remote -v
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)
Example 4: steps to sync branch to fork master?
$ git checkout master
> Switched to branch 'master'