3

I would like to get number of lines of code changed per commit. Is it possible?

I am trying the following command but it is giving numstat details for commits before my specified commit as well.

git log --numstat [commit hash] 
9
  • What is the exact output you want? Commented Sep 18, 2019 at 1:20
  • Thank you for your comment. I basically want something like this Commit Date, Commit Hash, Subject/Message, No. of files modified, Lines Added, Lines Removed Commented Sep 18, 2019 at 1:21
  • 2019-08-01, 3002fd1f2, '#11063 commit message', 1, 10, 13 Commented Sep 18, 2019 at 1:22
  • 1
    This links is exactly what you need. stackoverflow.com/questions/2528111/… Commented Sep 18, 2019 at 1:22
  • Thank you for that but it seems like I need to have 2 commits. Commented Sep 18, 2019 at 1:25

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.