Skip to content

Git Diff

Roger Xu edited this page Apr 14, 2016 · 2 revisions

git-diff

Diff working directory with staging area

git diff [--options] [--] [<path>…]

Diff working directory with <commit>

git diff [--options] <commit> [--] [<path>…​]

Diff staged changes with <commit>

git diff [--options] --cached [<commit>] [--] [<path>…]

Clone this wiki locally