Git · Everyday workflow

git diff

Shows unstaged changes. Use --staged for what will be committed and --stat for a summary.

Syntax
git diff

Example

Example
git diff
git diff --staged
git diff --stat

More in this group

git add git blame git commit git commit --amend git fetch git log git mv git pull

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course