Git Diff Purpose
Multiple Choice Easy
Question
What does git diff show?
Hint
diff shows line-by-line changes.
Explanation
git diff shows the differences between your working directory and the last commit (or the staging area). It displays added lines with + and removed lines with -. git diff --staged shows staged changes. git diff <branch1> <branch2> compares two branches. Diff is essential for reviewing changes before committing.
Related Resources
Related Lessons
- Git Log
Learn git log.
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.