Git拉/推历史记录:Git是否保存谁进行拉或推操作的信息? [英] Git pull/push history: Does Git save information who did a pull or push operation?

查看:104
本文介绍了Git拉/推历史记录:Git是否保存谁进行拉或推操作的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户A从分支B的master提取更改,并且可以不合并(没有冲突),是否有可能看到谁在Git历史记录(或其他Git元数据)中提取了谁? 我假设将请求推送到中央Git存储库中的相应分支. Git中有推送"历史吗?

If user A pulls in changes from master in a branch B and this is possible without a merge (no conflicts), is there a possibility to see who did this pull in Git history (or possibly other Git metadata)? I am assuming that the pull is pushed to the corresponding branch on a central Git repository. Is there a "push" history in Git?

推荐答案

Git将该信息存储在本地,但在您推送它时不会将其传输到远程存储库.

Git stores that information locally, but it is not transmitted to a remote repository when you push it.

您可以通过

git reflog --format=full

示例输出:

commit defed1f
Reflog: HEAD@{0} (a <a@none>)
Reflog message: pull origin master: Fast-forward
Author: b <b.none>
Commit: b <b.none>
(...)

这篇关于Git拉/推历史记录:Git是否保存谁进行拉或推操作的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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