LoginSignup
11
11

More than 5 years have passed since last update.

git "今日のコミット数"が知りたいときのワンライナー

Posted at

一日の終わりに「今日俺がんばったなー!」と満足感に浸りたいときに。

git shortlog --since="$(date +"%Y-%m-%d") 00:00:00" --no-merges -sn

解説

git shortlog--sinceオプションに、dateコマンドで”今日の00:00:00”を渡してやります。
--no-mergesオプションでマージコミットを除き、-sオプションでコミッター毎にまとめて、-nオプションでコミット数順に並びます。

11
11
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
11
11