is it possible to get info about which ip or computer, from git commit history or information

99封情书 提交于 2021-02-19 02:32:03

问题


Just out of curiosity, is there a way to get which IP the commit came from, or what MAC address this commit is from?

For example, if I clone a repo from GitHub and I check the Git history to find out all information about this commit.


回答1:


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

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.



来源:https://stackoverflow.com/questions/41577105/is-it-possible-to-get-info-about-which-ip-or-computer-from-git-commit-history-o

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