[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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s