Command
Git diff summary formats
Shows aggregate change statistics or change codes and paths. Summaries omit full patch context; rename detection can infer renames.
Formal Syntax & Structure
git syntaxgit
git diff [--stat | --name-status] OLD NEWWorking Example
Example Snippetgit
git diff --name-status HEAD~2 HEAD