Adding a remote upstream repository is done using:
git remote add upstream GIT-URL
For example:
git remote add upstream https://github.com/moment/moment-timezone.git
Adding a remote upstream repository is done using:
git remote add upstream GIT-URL
For example:
git remote add upstream https://github.com/moment/moment-timezone.git
Simple batch files to synchronize a local git repository with its forked (upstream) repository.
SeeĀ https://github.com/MartynDavis/utilities:
Windows:Windows/git-sync.bat
Unix: Shell/git-sync.sh
Source https://help.github.com/articles/syncing-a-fork/