Add Remote Fill
Fill in the Blank Medium
Question
Fill in the blank to add a remote named 'upstream'.
Code
git remote ___ upstream https://github.com/original/project.git
Hint
The subcommand to create a new remote is three letters.
Explanation
git remote add <name> <url> creates a new remote reference. 'upstream' is conventionally used for the original repository when you have a fork, while 'origin' points to your fork. You can then fetch and pull from upstream to stay in sync.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.