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
Top comments (0)