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)

513 total views, 2 views today

About Mirthbees 681 Articles
Blogger, Innovator, Developer and Enterpreneur. Founder of GuruRecharge, Readymade online recharge script. Lead Developer in Bookrate.in

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.