sensorario sensorario - 19 days ago 6
Git Question

How many lines of code differs between two commits?

I need to know how many lines of code I've changed between two different commits. My purpose is to understand how many lines of code I've written today but my abstract idea is to understand how many lines of code I've write from a moment to another one. Can someone help me for this stuff?

Answer

--shortstat is what you want:

git diff --shortstat commit1 commit2

You could also use it like:

git diff --shortstat "@{1 day ago}" 
Comments