Skip to content

Glossary: Command Line and Git

git diff

Also written: git diff --staged, --staged, --stat

Shows what changed. Plain `git diff` shows unstaged changes, `--staged` shows what the next commit will contain and `--stat` summarizes changes per file.

Where the book teaches it

Related terms

diffstaging area