git diff --numstat with --name-status

you can combine the --numstat and the --summary flags;

git diff --numstat --summary

Note that a new file cannot be in the "unstaged" area; so suppose you used "git add" and "git rm", then your git status will look like this:

# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       new file:   b
#       deleted:    a

then using

git diff --cached --numstat --summary

will give you:

540  0   b
0    3   a
 create mode 100644 b
 delete mode 100644 a

NOTE : you can use the --numstat and the --summary flags in combination with git diff, git diff --cached, git show and probably other commands.

Tags:

Git

Git Diff