Tamal Anwar Chowdhury
Tamal Anwar Chowdhury's Tech Blog

Follow

Tamal Anwar Chowdhury's Tech Blog

Follow

Setup Git Remote Upstream Master Connection for Open Source Contribution

Tamal Anwar Chowdhury's photo
Tamal Anwar Chowdhury
·Mar 28, 2023·

1 min read

Video instructions from Kent C Dodds here

git remote add upstream git@github.com:original_org/original_repo_address

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'.

 
Share this