Check Status & Differences in Git
From the Git cheat sheet · Making Changes · verified Jul 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