LoginSignup
23
16

More than 5 years have passed since last update.

月初から当日までのコミット数ランキングを表示するコマンド

Posted at

git shortlog -sn --no-merges --after='date +%Y/%m/01' --before='date +%Y/%m/%d' | cat -n

  • 開発チームでコミット数を管理したいとき
  • プロジェクト内で「アイツにコミット数で勝ったぜ、へっへーん」とモチベーションをあげたいとき

などにぜひ!

git shortlog

コミットメッセージの一行目が 著者ごとにグループ分けされて表示される

主なオプション
  • -n : 著者のアルファベット順ではなく、コミットの数で並び替える
  • -s : コミット数だけを表示する
  • -e : メールアドレスを表示する
  • -w : 一行の文字数、インデントのサイズを指定
23
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
16