端末で git log
コマンドでログを確認するとき、特定の author が反映した commit リストだけを確認する方法を紹介します。
1. 特定の author の commit のみ確認
git log --author=AUTHOR_EMAIL
コマンドは、AUTHOR_EMAIL が反映した commit リストだけをフィルタリングして出力します。
たとえば、次のように入力すると、 riddlehsu@google.com
が反映したコミットのみが出力されます。
$ git log --author="riddlehsu@google.com"
commit 0a9ff046af725329e096dc94778fd86f22eeb6dd
Author: Riddle Hsu <riddlehsu@google.com>
Date: Sat Jul 25 01:44:51 2020 +0800
Remove home snapshot immediately
If the size of snapshot is mismatched, the removal of the starting
window will be deferred. But if the snapshot target is home, since
it is only presented for unlocking, it is better to dismiss it as
soon as possible to avoid outdated content from being shown on screen
if the windows of home have drawn.
commit 06a619b9910071dac16d06d40669672756e7b99b
Author: Riddle Hsu <riddlehsu@google.com>
Date: Mon Aug 10 16:21:16 2020 +0800
Resume next activity if pausing app died
If the top activity is crashed before showing any window, when its
process reported dead, it will be regarded as no visible activity
and no need to resume next activity. That may lead to the next top
activity remains in paused state and may be unresponsive.
commit 7cab6acae9b6190ca6c0606a19e2d7e7631c5345
Merge: 732f43e51e9 2d695313c90
Author: Riddle Hsu <riddlehsu@google.com>
Date: Tue Jul 7 07:58:38 2020 +0000
Merge "Fix boot timeout and reduce boot time" into rvc-dev am: 2d695313c9
....
2. 2人以上のauthorのcommitリスト出力
2人以上のauthorをフィルタリングしたい場合は、次のように複数のauthorを引数として渡します。
$ git log --author="AAA@example.com" --author="BBB@example.com" --author="CCC@example.com"
Related Posts
- git cloneコマンドでリモートリポジトリをローカルに保存する
- Git - 2つのコミットの違いを確認する(コードの違い、ファイルの違い)
- Git - ブランチ名を変更する方法
- Git - 特定のコミットを削除、元に戻す(reset、revert)
- Git - リモートブランチの作成と削除
- GitHubにssh-keyを登録する方法(Windows10)
- git log - 特定のauthorのcommitリストのみを出力する
- git log - commit リスト簡単に出力 (pretty)
- Git - revert 命令 (commit 元に戻す)
- git diffコマンドでファイルの変更を確認する
- git showコマンドでコミット情報を確認する
- Git - ブランチの作成、削除、チェックアウト
- Git - リモートリポジトリの追加、解除
- Git - Staging領域のファイルをUntrackedに変更する
- Git - commit logで修正されたファイルのリストを見る
- Git - 最後のコミットを修正、削除する方法(reset、amend命令)
- git commit message エディタの変更 (Vim, Sublime, Atom, VSCode)
- Git - blameコマンド、コードを修正した人とCommitを探す
- Git - Patchファイルの作成と適用