[Git] Summarize changed files and line counts with git diff --stat

Created on November 30, 2026

Use git diff --stat to see counts of changed lines by file. This example assumes two lines were added to fruits.txt and one was removed.

git diff --stat
 fruits.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

A plus marks an addition and a minus marks a deletion. The last line totals the changes across files. Run git diff to see the individual changed lines.

Reference

Git