Staged Diff Fill
Fill in the Blank Medium
Question
Fill in the blank to show only staged (cached) changes.
Code
git diff ___
Hint
The flag means 'show staged changes'. You can also use --cached.
Explanation
git diff --staged (or --cached) shows the differences between the staging area and the last commit — i.e., the changes you have staged but not yet committed. Plain git diff shows unstaged changes only.
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.