How to even your forked repository with the source in Github
Published in
Jul 6, 2020
Step 1: Commit/Stash any recent changes but don’t push them.
Step 2: Add the remote (the one you forked ) and name it “upstream”. Copy the Source repository’s URL and paste it like done in the below example.
Step 3: Use git fetch to fetch all branches of the remote
Step 4: Update/Rewrite your master with the upstream master using the git “rebase” command.
Step 5: Lastly (yep we are almost done ), push your updates if any to your forked repository’s master branch.
Step 6:Use --force
to force push the changes if required