git diff --stat

Category: Git - Core

git diff --stat

Summarize changed files with line counts

Prints one line per changed file with insertions and deletions drawn as plus and minus bars, plus a final total. It answers what changed and how much without any patch detail. Append it to most diff commands, such as git diff --stat origin/main.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.