How do I find the real user who pushed a commit in gitlab?

ぐ巨炮叔叔 提交于 2020-01-01 10:17:22

问题


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: 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 ?


回答1:


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: gitlab-shell.log

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.




回答2:


Only commit status can be known. But person who actually pushed cannot be known.




回答3:


because of the confusing nature of your question, I am only able to provide simple answers. If what you are asking is to see what authentication a particular user has used to PUSH a commit then you should be able to find it based on the remote URL for the repo. If you are looking to find out who did a specific commit, you can search for it in the Web UI.

Hope this helps, reach out if you have additional questions.



来源:https://stackoverflow.com/questions/50995012/how-do-i-find-the-real-user-who-pushed-a-commit-in-gitlab

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