git log - 특정 author의 commit 리스트만 출력

By JS | Last updated: July 11, 2021

git log 명령어의 --author 옵션을 이용하면 특정 author가 반영한 commit들만 필터링하여 출력합니다.

git log --author=AUTHOR_EMAIL

다음 명령어는 "riddlehsu@google.com"가 반영한 commit 리스트만 필터링하여 출력합니다.

$ 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
....

두명 이상의 author의 commit 리스트 출력

만약 두명 이상의 author들에 대해서 필터링하고 싶다면, 다음과 같이 다수의 author를 인자로 전달하면 됩니다.

$ git log --author="AAA@example.com" --author="BBB@example.com" --author="CCC@example.com"
댓글을 보거나 쓰려면 이 버튼을 눌러주세요.
codechachaCopyright ©2019 codechacha