Merge GIT Fork with Master

Add an upstream source and name it (

Before doing anything, you need to tell Git where to find the upstream fork.

git remote add realmaster https://github.com/whoiforkedfrom/upstream_repo.git

Then you can use the following commands to update your fork whenever you feel the need.

git fetch realmaster
git checkout master
git merge realmaster/master

Leave a Reply

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