how to get a forked repo in line with master code example
Example: Sync your Git Fork to the Original Repo
$ git remote add upstream https://github.com/[Original Owner Username]/[Original Repository].git
$ git fetch upstream
$ git checkout master
$ git merge upstream/master
$ git push