Show unstaged changes in the working tree.
git diff
Shows unstaged changes (working tree vs index). git diff --staged (or --cached) shows staged vs last commit. git diff HEAD shows all uncommitted.
Safety: Inspect first and avoid rewriting shared history unless the team expects it.
Before committing, show only the changes already staged for the next commit.
git diff --staged
--staged (alias --cached) compares the index to HEAD, showing exactly what git commit would record. Run alongside git diff to see staged + unstaged separately.
Safety: Inspect first and avoid rewriting shared history unless the team expects it.
Build the habit: GitDrill drills git diff and the rest of the Git workflow until the safe first move is automatic. Try a Git drill.