特定ユーザーの月ごとのcommit数を調べる
author="調べたい人のユーザー名" year=2020 month=("01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12") for m in "${month[@]}" do echo "$year-$m\t"$(git log --date=iso --author="$author" --pretty=format:"[%ad] %h %an : %s" | grep "$year"-"$m" | wc -l)
調べたい人のユーザーと年を指定してターミナルで上コマンドを実行すると以下の様に月ごとのcommit数が表示できる
2020-01 0 2020-02 35 2020-03 39 2020-04 184 2020-05 191 2020-06 51 2020-07 40 2020-08 0 2020-09 0 2020-10 0 2020-11 0 2020-12 0