Help us understand the problem. What is going on with this article?

gitで今日の作業を振り返る

More than 5 years have passed since last update.

Gitでその日にしたコミットのログを全て取得する方法。

--onelineオプションで各コミットを一行で表示します。
--branchesでブランチを指定するのですが*を渡せば全てになります。

git log --after="`date '+%Y-%m-%d'` 0:0" --oneline --branches *

作業報告しろとか面倒くさい指示をしてくる部長がいたらこうしましょう。

git log --after="`date '+%Y-%m-%d'` 0:0" --oneline --branches * | mail -s "本日の作業報告" butyo@example.com

複数のユーザがコミットしていて自分のコミットだけ抽出したい場合は--authorオプションを指定して以下のように。

git log --after="`date '+%Y-%m-%d'` 0:0" --oneline --author=name --branches *

午前0時を回るヘビープログラマの方はこちらのコマンドをおすすめします。
24時間以内のコミットが全て取得可能です。

git log --after='24 hour ago' --oneline

以上です!

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away