Git – Updating a Fork from the upstream Repo

Add the repository this fork was created from as an upstream remote

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.

Fetch everything from upstream

git fetch upstream

Switch to the branch you want to merge

git checkout master

Merge

git merge upstream/master

Leave a Reply

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