Predict Fetch Behavior
Predict Output Medium
Question
You run `git fetch origin`. What changes in your local repository?
Code
git fetch origin
Hint
Fetch updates remote refs but does not touch your working directory.
Explanation
git fetch origin downloads new commits and updates remote-tracking branches (like origin/main), but does NOT modify your working directory or local branches. Your files stay exactly as they were. To integrate the fetched changes, you must merge or pull.
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.