GIT - Sync Fork from upstream Repo

less than 1 minute read

Add the Remote Upstream Repository

git remote add upstream [Upstream git URL]

Fetch the Upstream Branches

git fetch upstream

Merge Upstream Changes into your Downstream Repository

git merge upstream/master

Create a New Branch for Work

git checkout -b "feature-new-stuff"

Perform Your Local Work

Push Changes to Your Downstream Remote Repository {#415b}

git push origin feature-new-stuff


Tags: , ,