title: Git show lines of code per author per file
body: <p>So for my project I need to show an individual person's contribution as lines of code on a per file basis. What I have tried:</p>
  <pre><code>git-quick-stats
  </code></pre>
  <p>This shows the total insertions and deletions per user as:</p>
  <pre><code> Mayank Rikh &lt;____@____&gt;:
        insertions:    4680   (41%)
        deletions:     2389   (53%)
        files:         266    (44%)
        commits:       43 (39%)
        lines changed: 7069   (44%)
        first commit:  Sat Oct 31 20:48:23 2020 +0000
        last commit:   Thu Dec 10 22:41:05 2020 +0530
  </code></pre>
  <p>But I can't seem to find an argument to list them all by file.</p>
  <p>So to see on a per file basis, I tried:</p>
  <pre><code>git log --author=&quot;Mayank Rikh&quot; --pretty=tformat: --numstat
  </code></pre>
  <p>This gave a result quite close to what I expected but when I tried total the count of insertions from the above command, it resulted in just 1500 insertions which is different from the <code>git-quick-stats</code>.</p>
  <p>Why is that? Which is the real number?</p>