How do I show the number of lines added(and deleted) in git? [closed]

I have to display the number of lines added(and deleted) to a certain file by all commits.


Use git log --numstat --oneline <Filename>. This will give you a list of commits for file <Filename>, with two lines for each commit, using this syntax:

[sha hash] [commit title line]
[lines added] [lines removed] [path to file in repository]