Reputation: 41
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
Reputation: 5444
You can do that by:
git diff --stat <commit1> <commit2>
And for a quick history overview:
git log --stat
Upvotes: 1