Adam Grzybowski


Git diff only filenames


Occasionally, you just need to check filenames of changed files, without checking changes itself, how can we get only filenames in git diff?

git diff --stat

Display filenames with data about how many lines last commit adds or removes

git diff --name-only

Get only edited file’s filenames

git diff --numstat

Display number of lines edited, useful for parsing stats etc

Read more about programming tips in Programming category.

Ream more about Git diff on Git documentation page.

Back to top