0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

今月の自分のコミット履歴確認したい時

0
Posted at

使用するコマンド

以下のコマンドを実行することで、特定の期間かつ特定のユーザーのコミット履歴を、見やすい形式で取得できます。

git log --since="2026-06-01" --until="2026-06-31" --author="daichi" --pretty=format:"%h - %cd : %s" --date=format:"%m/%d %H:%M"

オプションの解説

各オプションの意味は以下の通りです。

オプション 役割
--since="YYYY-MM-DD" 指定日以降のログを表示
--until="YYYY-MM-DD" 指定日以前のログを表示
--author="名前" 指定したユーザーのコミットのみ表示
--pretty=format:"..." 出力フォーマットを自由に指定
--date=format:"..." 日付の表示形式を指定

フォーマットで使える主なプレースホルダー

  • %h: コミットハッシュ(短縮版)
  • %cd: コミット日時
  • %s: コミットメッセージ

Github

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?