Access log for git
How can I find out who has cloned / pulled a project in git? I'm finding all great tools for tracking the files, but is there a wa开发者_C百科y to see who has had accessed them?
Assuming people are accessing the repository via ssh, you could use sshd
's access log to get a general sense.
Beyond that, however, there aren't any "access logs" built into Git itself. If you use something like gitolite
to serve repositories, it has its own logging functionality I believe.
git uses git-upload-pack
and git-receive-pack
for communicating with other machines. You can try wrapping those and logging access.
精彩评论