是否有可能从git commit历史记录或信息中获取有关哪个IP或计算机的信息 [英] is it possible to get info about which ip or computer, from git commit history or information
问题描述
只是出于好奇,有没有办法获取提交来自哪个IP或此提交来自哪个MAC地址?
Just out of curiosity, is there a way to get which IP the commit came from, or what MAC address this commit is from?
例如,如果我从GitHub克隆存储库,并检查Git历史记录以查找有关此提交的所有信息.
For example, if I clone a repo from GitHub and I check the Git history to find out all information about this commit.
推荐答案
否.此信息通常在服务器端收集,因为它有一个侦听器(ssh或https),可以将它们放在日志中.
这通常就是 gitolite (授权层).html#lff"rel =" nofollow noreferrer>其日志文件
No. This information is typically collected on the server side, because it has a listener (ssh or https) which can put them in a log.
That is typically what does gitolite (an authorization layer) in its log file
但是在客户端,没有侦听器,只有一个 git
命令将解释接收到的包文件.它只与存储库数据有关,而与它的来源无关.
But one the client side, there is no listener, only a git
command which will interpret the pack files it receives. It is only concerned with the repository data, not its origin.
这篇关于是否有可能从git commit历史记录或信息中获取有关哪个IP或计算机的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!