Command
git diff between commits
Compares endpoint trees, not intervening events. Swapping endpoints reverses the patch. A..B in this command compares A and B.
Formal Syntax & Structure
git syntaxgit
git diff OLD NEW [-- path]Working Example
Example Snippetgit
git diff HEAD~2 HEAD -- notes.txt