Check who pushed a Git commit

前端 未结 2 1924
太阳男子
太阳男子 2021-01-04 06:33

short: Is there any way to view who has pushed a commit to a git repository?

long: git log shows me who created the co

2条回答
  •  爱一瞬间的悲伤
    2021-01-04 07:12

    No, you would need an extra layer added to Git in order to record that kind of operation.
    git log only display the committer and author, as recorded in the commit.
    But that has no bearing on who is actually pushing said commit.

    For instance, gitolite (an authorization layer) adds an audit trail mechanism, with logs.
    See its log file format.

提交回复
热议问题