检查谁推Git提交 [英] Check who pushed a Git commit

查看:141
本文介绍了检查谁推Git提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

short :是否有任何方法可以查看谁推送了一个提交到git仓库?

long >: git log 显示谁创建了提交,何时提交评论和什么是提交评论。所以我可以知道提交的原始作者。如果这样的提交被原作者推送到了一个特性分支,我想查看谁将这个提交合并到了生产分支。

不,你需要为Git添加一个额外的图层来记录这种操作。

git log只显示commit中记录的提交者和作者


但是这对于 实际上是在推送所述提交的 无关紧要。 gitolite 授权图层)添加审核追踪机制和日志。

查看其日志文件格式


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

long: git log shows me who created the commits, when and what are the commit comments. So I can know an original author of a commit. If such commit was pushed to a feature branch by the original author, I'd like to check who merged this commit to the production branch.

解决方案

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.

这篇关于检查谁推Git提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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