Ilya
Ilya

Reputation: 41

How to see correct metrics for changes between two commits?

How properly use git diff to count: added, modified, deleted and total lines of file for each file? Also, I need ignore blank and comments lines.

Upvotes: 1

Views: 42

Answers (1)

hurturk
hurturk

Reputation: 5444

You can do that by:

git diff --stat <commit1> <commit2>

And for a quick history overview:

git log --stat

Upvotes: 1

Related Questions