[Git] – How to update your fork branch with the changes made in the source repository?

Git command needed : upstream

Step by Step

  • Go to your fork project dir locally that you did via cloned the project
$git clone 
$cd yourforkproject
  • Configure that this repository is a fork of the source repository through the git command
$git remote add upstream <git source path>
$git fetch upstream
  • Now do the merge of the master branch of source repo in your fork project 
$git pull upstream master

Leave a comment