Predict Remote Add Result
Predict Output Medium
Question
You run `git remote add origin <url>`. What does `git remote -v` show?
Code
git remote add origin https://github.com/user/repo.git
git remote -v
Hint
Each remote has both a fetch and push URL.
Explanation
git remote -v lists each remote with its fetch and push URLs. After adding 'origin', you see two lines: one for fetch and one for push, both pointing to the same URL. If fetch and push differ, they show different URLs.
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.