Git Remote Add
Multiple Choice Easy
Question
What does git remote add origin <url> do?
Hint
remote add connects local to remote.
Explanation
git remote add origin <url> adds a remote repository named origin with the given URL. This links your local repository to the remote, enabling push and pull. origin is the conventional name for the primary remote. You can have multiple remotes (e.g., origin and upstream). View remotes with git remote -v. Remove with git remote remove origin.
Related Resources
Related Lessons
- Git Clone
Learn git clone.
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.