Michelle Tan
Posted on August 22, 2020
Here's a little cheat sheet for fork repo.
Track original repository
It's best to set this after you clone your fork.
# Set fork to track original repo
git remote add upstream https://github.com/[Original Owner]/[Original Repository].git
Update your fork
# Sync your fork with original repo
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
Check your remote fork setup
git remote -v
💖 💪 🙅 🚩
Michelle Tan
Posted on August 22, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.