A lot of answers end up moving your fork one commit ahead of the parent repository. This answer summarizes the steps found here which will move your fork to the same commit as the parent.
- changeChange directory to your local repository.
- switchSwitch to master branch if you are not
git checkout master
- addAdd the parent as a remote reporepository,
git remote add upstream <repo-location>
- Issue
git fetch upstream
- Issue
git rebase upstream/master
- At this stage you check that commits what will be merged by typing
git status
- Issue
git push origin master
For more information about these commands, refer to step 3.