Setup Git Remote Upstream Master Connection for Open Source Contribution

Play this article

Video instructions from Kent C Dodds here

git remote add upstream

Get information about upstream remote

git fetch upstream

Make the local copy of master/main to point to the upstream:

git branch --set-upstream-to=upstream/main

Output: branch 'main' set up to track 'upstream/main'.