Last active
January 3, 2017 16:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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