Check Status & Differences in Git

From the Git cheat sheet ยท Making Changes ยท verified Nov 2026

Check Status & Differences

See what has changed in your working directory

bash
# Check status
git status
git status -s  # Short format

# View changes
git diff              # Unstaged changes
git diff --staged     # Staged changes
git diff HEAD         # All changes
git diff <branch>     # Compare with branch
๐Ÿ’ก Status shows staged, modified, and untracked files
โšก Use -s for compact status output
๐Ÿ“Œ Diff shows line-by-line changes
๐Ÿ“Œ Plain git diff skips staged changes; add --staged

Continue with Git

Save the full cheat sheet or work through every related task.

More Git tasks

Back to the full Git cheat sheet