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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.