GIT如何知道谁或哪些用户克隆了回购? [英] GIT how do I know who or which users cloned the repo?

查看:179
本文介绍了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.

这篇关于GIT如何知道谁或哪些用户克隆了回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆