Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
704 views
in Technique[技术] by (71.8m points)

statistics - How to get GitHub Clone stats?

There used to be a "Clones" sub-tab in the "Stats & Graphs" tab of GitHub (for example https://github.com/TeamMentor/TeamMentor-Documentation/graphs/impact) but that is gone.

Is there another way to get these stats?

It would be great if we could get Gauges to show up Git clone, pushes, pulls, GitHub page views, etc.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

At least regarding clone, you now (August, 12th 2014) have a dedicated graph.
(In 2019: Insights / Traffic)

See "Clone Graphs"

Our traffic graphs tab shows you a lot of information about who's visiting your repository on the web.
We've added a new graph to this tab, showing git clone activity.

https://cloud.githubusercontent.com/assets/395621/3867646/2c340b8a-2009-11e4-8823-9ddda44b51e0.png_git clones traffic graph

You can use it to find out:

  • how many times your repository's source code is actually cloned in a given day, as well as
  • how many unique GitHub users (or anonymous IP addresses) did the cloning.

For more information on traffic graphs, check out the documentation.

Note you also see the Referring sites and Unique visitors


Update Jan. 2021: Dr. Jan-Philip Gehrcke reports in the comments:

For periodically collecting traffic/access data (such as clones, views), I've built a GitHub Action: jgehrcke/github-repo-stats:
it automatically:

  • persists the data snapshots in a git repository,
  • aggregates them, and
  • generates a report with charts that then can span the entire data collection period!

Demo report in the README.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...