GIT如何知道谁或哪些用户克隆了回购?

问题描述:

我在Ubuntu服务器中的GIT 1.7中有一个专用的REPO,可供一组用户使用。我想知道是否有方法可以了解哪个用户已经克隆了提及的REPO。有没有一个命令来做到这一点?
任何帮助或评论都是值得欢迎的。

I've a private REPO in GIT 1.7 in a Ubuntu Server that is available for a group of users. I would like to know if there is a way to learn which user had already cloned that mentioned REPO. Is there a command to do this ? Any help or comment is more than welcome.

唯一的方法是检查服务器日志git本身并没有记录任何类似的内容。

The only way to do this is to check server logs for users who has accessed the repository, git itself does not record anything like this.

然而,这会给你列出直接访问服务器的人员,但这不是克隆了存储库的人们的方式明确列表 - 他们可以彼此克隆而没有任何限制,这就是分布式版本控制的作用。

However this will give you list of people who did access directly the server, but this is no way definite list of people who have cloned the repository - they can clone from each other without any limitations, that's how distributed version control works.