Skip to content

Instantly share code, notes, and snippets.

@lingsamuel
Created October 21, 2021 14:24
Show Gist options
  • Save lingsamuel/25a912d5653b46ac8e9f77183e8ba6ef to your computer and use it in GitHub Desktop.
Save lingsamuel/25a912d5653b46ac8e9f77183e8ba6ef to your computer and use it in GitHub Desktop.
Calculate changes in git
git log --shortstat --since "2020-10-08" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "; lines inserted:", inserted, "; lines deleted:", deleted}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment