Skip to content

Instantly share code, notes, and snippets.

@wwj718
Created August 1, 2019 06: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 wwj718/3c6dfc24d9b7b50c503d51e2fec819a7 to your computer and use it in GitHub Desktop.
Save wwj718/3c6dfc24d9b7b50c503d51e2fec819a7 to your computer and use it in GitHub Desktop.
统计三天内提交的代码数量
git log --shortstat --author "wwj718" --since "3 day ago" \
| 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