Skip to content

Instantly share code, notes, and snippets.

@eduardordm
Created September 19, 2014 04:18
Show Gist options
  • Save eduardordm/291cd48e677beb1ded29 to your computer and use it in GitHub Desktop.
Save eduardordm/291cd48e677beb1ded29 to your computer and use it in GitHub Desktop.
Lines of code between two commits
Replace the SHAs and author with your own.
git log --numstat --pretty="%H" --author="eduardo.a20" 8e03890e494a25e7706c80c38e89858c887d436d..052ff1202e0326c9588531d234b30269bd8056f8 | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment