GitHistory

git diff

Shows changes between commits, the working tree, and the staging area.

Syntax

git diff [--staged] [<commit>..<commit>]

Examples

Show staged changes only

git diff --staged

Related commands