How to even your forked repository with the source in Github

Anush krishna .V
Voice of Code
Published in
Jul 6, 2020
Image Credits: Unsplash

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

--

--

Anush krishna .V
Voice of Code

MS Data Science @RIT | Ex-Data Engineer @Metabob | Global Finalist IBM CFC | Data Engineering & Science | Looking for an internship