如何找到在gitlab中推送提交的真实用户? [英] How do I find the real user who pushed a commit in gitlab?

查看:682
本文介绍了如何找到在gitlab中推送提交的真实用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法找出谁将特定提交推送到gitlab-在提交日志中(我通过git client config看到作者设置),我想查看哪个gitlab用户身份验证用于PUSH该代码?

Is there a way to find out who pushed a particular commit to gitlab - In the commit log (I see the author set via the git client config) , I instead want to see which gitlab user's authentication was used to PUSH that code ?

PS:有多个特定于git的问题,而前面的问题中没有提供解决方案-想看看gitlab是否具有解决此问题的特定实现?

PS: There are multiple git specific questions asked and there was no solution provided in the previous questions - want to see if gitlab has some specific implementation to solve this ?

推荐答案

5年前回答否" ,但GitLab提供了自己的审核日志:如此处 HTTP SSH 请求记录在不同的文件中:

I answered "no" 5 years ago, but GitLab offers audit logs of its own: As mentioned here HTTP and SSH requests are logged in different files:

  • HTTP :nginx/gitlab_access.log

SSH :

但是,这不会给您推送SHA1的信息,只有推送事件的日期和IP:您仍然需要将其与提交日期进行交叉引用,以了解谁确实推送了给定的提交

However, that won't give you the SHA1(s) pushed, only the push event date and IP: you still need to cross-reference that with a commit date, to get an idea of who did push a given commit.

这篇关于如何找到在gitlab中推送提交的真实用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆