git diff

Show changes to tracked files. More information: https://git-scm.com/docs/git-diff.

git diff

git diff HEAD

git diff --staged

git diff 'HEAD@{3 months|weeks|days|hours|seconds ago}'

git diff --name-only commit

git diff --summary commit

git diff branch_1..branch_2 [--] path/to/file

git diff branch:path/to/file2 path/to/file