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.
Glossary: Command Line and Git
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.