开发者

Access log for git

开发者 https://www.devze.com 2023-04-11 05:30 出处:网络
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 ac

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消