问题
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