Check who pushed a Git commit

戏子无情 提交于 2019-11-30 18:52:33

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.

You can see who has merged the branch. When you make git log --all you see all branches. There you can see the merge commits.

But the problem on Git is that you can define any author and email so you can't be sure that its correct.

If you need access control you need something like gitolite.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!