Skip to content

Instantly share code, notes, and snippets.

@gflandre
Last active January 3, 2017 16:10
Show Gist options
  • Save gflandre/ea5b36b960bfb934ed73 to your computer and use it in GitHub Desktop.
Save gflandre/ea5b36b960bfb934ed73 to your computer and use it in GitHub Desktop.
Get the total number of lines added and deleted in your repo in 2016
# Get the total number of lines added and deleted in your project in 2016
git log --numstat --pretty="%H" --since="2015-12-31" --until="2017-01-01" --branches="master" | 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