Compare commits

Patches

View patches from each commit.

$ git log -p

Or only for the last commit.

$ git show

Files changed

$ git diff --name-status COMMIT [COMMIT]
$ git diff --name-status HEAD~2

For sample output see Diff command page.