git remote add upstream https://github.com/expressjs/express.git

Category: Git - Core

git remote add upstream https://github.com/expressjs/express.git

Add an upstream remote for a fork

Registers a second remote named upstream pointing at the original repository you forked. Fetching from it keeps your fork in sync with the source project. The convention is origin for your fork and upstream for the canonical repo.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.