Skip to content

Instantly share code, notes, and snippets.

@gasolin
Created December 22, 2020 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gasolin/505249a1a5680419d0fd705946fd66ca to your computer and use it in GitHub Desktop.
Save gasolin/505249a1a5680419d0fd705946fd66ca to your computer and use it in GitHub Desktop.
git line changes in certain period
git log --shortstat --since "2020-9-1" --until "2020-12-1" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'
# files changed 2143 lines inserted: 32933 lines deleted: 19808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment