Skip to content

Instantly share code, notes, and snippets.

@mtgto
Created April 7, 2013 17:13
Show Gist options
  • Save mtgto/5331366 to your computer and use it in GitHub Desktop.
Save mtgto/5331366 to your computer and use it in GitHub Desktop.
直近2日間のgitのブランチに対して変更した行数とファイル数を表示する
git log --shortstat --since "2 days 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