link
git/diff

Show Changes

Show changes between commits

git
diff
changes

Command

git diff

Examples

Show unstaged changes

git diff

Show staged changes

git diff --staged

Compare with previous commit

git diff HEAD~1