how to sync forked repo with master code example
Example 1: 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
Example 2: steps to sync branch to fork master?
$ git checkout master
> Switched to branch 'master'