Keep a fork in sync with upstream in git 1. Add a new remote to point to the upstream repo: > git remote add upstream git://github.com/USERNAME/UPSTREAM-REPO.git 2. Check remotes: > git remote -v origin git@github.com/MY-USERNAME/MY-FORK-REPO.git (fetch) origin git@github.com/MY-USERNAME/MY-FORK-REPO.git (push) upstream git@github.com/USERNAME/UPSTREAM-REPO.git (fetch) upstream git@github.com/USERNAME/UPSTREAM-REPO.git (push) 3. Pull changes from upstream to master: > git pull upstream master 4. Push changes to origin from master: > git push origin master