Explain clones info in Github's Traffic tab
Solution 1
I believe part of the confusion is that the graph shows 4 cloners (blue line), and the label is saying 3 unique cloners. Other than that, it should be interpreted as:
- 6 clones in the past 14 days, 4 made on 9/8 ... this may not indicate the "total" as you ask, as this graph only ever goes back 14 days
- 3 unique cloners cloned it, some of them may have cloned it more than once...
- ...For example, on 9/8, it could have been cloners:clones of 1:1 and 1:3 ... it doesn't give you that level of information
- It should include every time the
git clone
command was executed against the repo, so all of your different devices, yes. - You would be identified as a unique user or not based on if it could determine "unique GitHub users (or anonymous IP addresses)" + confirmation from GitHub support
Solution 2
This might also be happening: if you are using Github actions or have other "apps" connected to your Github account (for instance Netlify). Those may also clone your repo to build or test your code.
Let's say you have a Github action defined that runs a few tests when you push to your repository. Github will start a virtual machine or a container. It will clone your code, install it and run the tests. After that you get a fail or pass and the VM or container is shut down.
Also when you have netlify integrated with for instance a React app repository. When you push new code something simular will happen. But then Netlify will try to build the app. That also results in your repo being cloned.
Gabriel
Updated on November 20, 2021Comments
-
Gabriel over 2 years
In a recent question I made, one of the answers pointed to another answer in another question where a way to explore the forks and clones of a public Github repo was shared.
I went ahead and did that with my own public repo and came up with this information in the
Git clones
section under theTraffic
tab in the Graphs section:I'm not really sure I understand what this information means. Are there 6 clones of the repo in total with 4 of them made on the 09/08? Did only 3 unique cloners cloned it?, in which case, does that mean they cloned it more than once? Do those numbers include myself and any clones I might have made in different systems (ie: home PC, work PC, laptop, etc)? Any help is much appreciated.
-
Arun Ramachandran almost 4 yearsAs per GitHub's chart, BLUE is unique clones whereas GREEN is the number of clones. By looking at the graph, "4 made on 9/8" - I believe this statement might be wrong ( I am not saying it's definitely wrong, but it may be wrong ). The value 4 is against the GREEN line and the green line is not showing any indications on 9/8. It's the blue line which has a hike on this given date and that indicates 2 clones (value on the right side). You can correct me if I am wrong.
-
Haidar over 2 yearsby bots cloning your repo, you mean, for example, the TabNine tool for android studii team programmed a book that clones random repos from github with a specific language tag to learn from it?
-
Exarchias over 2 yearsi mean mostly that something is attracted by the labels and it simply clones stuff without doing anything else. The only thing that I can confirm is the correlation of tags and cloning, and that it is not an one time thing, (the cloning becomes a regular thing in labeled repos). It can be anything, some sort of search engine, a bot, or just a search tool, (TabNine could be as well).
-
Benjamin Zach over 2 yearsYour answer is not completely clear to me. Would you mind rephrasing it a bit?
-
Admin over 2 yearsHe @BenjaminZach, I have rephrased it a little. Let me know if it's not clear enough.
-
Ryan Millares over 2 yearsthanks for the explanation, i was worried i was having my final project randomly cloned by several people on a daily basis but i think it is a combination of my use of netlify and github archival programs
-
Sachin Malhotra over 2 yearsPhew! I was going bonkers there. My repo has like 3k+ clones in the past 14 days. Yet it only had like 4 stars haha. Guess I'm not an internet sensation after all. I have 5 separate Github workflows hooked up to the repo. That explains it. Thanks!!