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.
Asked
Active
Viewed 6,563 times
1
-
3Git is decentralised, so even if you found out who cloned *your* repo, someone may have cloned *his* copy and so on ad infinitum. There is no way to be sure of this with a decentralised system. – Jørgen R Feb 12 '13 at 14:53
-
Thanks for the comments. This question has been commented to in the other thread, Seems like the architecture concept doesn't allow to do this. http://stackoverflow.com/questions/11719936/git-repository-cloning-logging – Glauber Miranda Casanova Feb 12 '13 at 20:47
2 Answers
2
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.

Michal Čihař
- 9,799
- 6
- 49
- 87
-
1... and that will only tell you who accessed the repository directly. Somebody could have cloned one of the clones. – Jan Hudec Feb 12 '13 at 14:49
-
-
Thanks for the comments. This question has been commented to in the other thread, Seems like the architecture concept doesn't allow to do this. http://stackoverflow.com/questions/11719936/git-repository-cloning-logging – Glauber Miranda Casanova Feb 12 '13 at 20:39
0
Now I user Subversion - but this overall concept seems valid - I'm sure I'll get downvoted by anyone that knows Git but oh well...
if you have a pre-existing group, couldn't you then do a git clone --reference <repository>
, by doing on check on each group member? One would show up if there was a clone there for that user, no?

Hituptony
- 2,740
- 3
- 22
- 44
-
... except all the users would have to do `--reference` clone and there is nothing forcing them to. – Jan Hudec Feb 12 '13 at 14:50
-