Git: How to update a forked repository from a main Git repository?
Nov 30, 2022 - by kurinchilamp / / Post Comment
i) Add an upstream to the remote github URL
$ git remote add upstream <GIT_REPO_URL>
ii) Retrieve all branches from upstream
$ git fetch upstream
iii) Merge the repo to your local branch
$ git merge upstream/master
iv) Now, push the changes to your remote forked repository
$ git push origin master
Continue Reading