Sync a Fork Repository - S-mardii/odm-frontend GitHub Wiki

Sync a Fork Repository

Section 1 Configuring a remote for a fork

step 1 Open Git Shell

step 2 View current configured remotes for your fork:

git remote -v

step 3 Add a new remote from upstream:

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPO.git

step 4 Verify the new upstream remote:

git remote -v

(get the upstrem link from: Clone with HTTPS in the upstream repo)

More details: here


Section 2 Sync fork with upstream

step 5 Get all changes on upstream to your fork:

git fetch upstream

step 6 Switch to master branch of your fork:

git checkout master

step 7 Merge changes from upstream to your fork:

git merge upstream/master