4

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.

chwarr
  • 6,777
  • 1
  • 30
  • 57
keypoint
  • 2,268
  • 4
  • 31
  • 59
  • 1
    AFAIK `git show --quiet --format=raw HEAD` is pretty much all there is. i would not expect any machine information in there. – phoet Jan 10 '17 at 20:29

1 Answers1

3

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.

chwarr
  • 6,777
  • 1
  • 30
  • 57
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250