Updating a GitHub fork

To update a GitHub fork with the changes done in the original repository:

  • Add the original source to your fork
    git remote add original git://url-to-original-repo
    You can verify the remotes with the command
    git remote -v
  • Fetch the changes from the original repo
    git fetch original
  • Merge the changes
    git merge original/master
  • Push the changes to your repo
    git push