Git Diff Quiz
Multiple Choice Easy
Question
What does `git diff` show by default?
Hint
Diff means difference — what changed.
Explanation
git diff shows the line-by-line differences between your working directory and the staging area (i.e., unstaged changes). Use git diff --staged to see staged changes, or git diff <branch1> <branch2> to compare branches. It does not show history (git log), branches (git branch), or gitignore.
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.