Comments to update forked repository git

Below are the comments to update your forked repository:

  • git remote add upstream URL_OF_WHERE_YOU_FORKED (only one time to configure the upstream git url).
  • git fetch upstream
  • git merge upstream/BRANCH_NAME_WHICH_YOU_WANT
    • Sidenote: If you want to commit to master then Branch_name can be skipped.
  • git push origin ( to push the changes to my fork repository).

 

You can use git bash for windows tool and run the above comments inside root directory of your project using the same tool.

Git bash for windows tool can be downloaded from here. (It is available for windows/Mac OS & Linux)

Leave a Reply