如何获取 GitHub Clone 统计信息? [英] How to get GitHub Clone stats?

查看:35
本文介绍了如何获取 GitHub Clone 统计信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GitHub 的Stats & Graphs"选项卡中曾经有一个Clones"子选项卡(例如 .

请注意,您还会看到推荐网站和唯一身份访问者


2021 年 1 月更新:Dr.Jan-Philip Gehrcke评论中报告:

<块引用>

为了定期收集流量/访问数据(例如克隆、视图),我构建了一个 GitHub Action:jgehrcke/github-repo-stats:
它会自动:

  • 将数据快照保存在 git 存储库中,
  • 聚合它们,并且
  • 生成带有图表的报告,然后可以跨越整个数据收集期!

自述文件中的演示报告.

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.

解决方案

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.

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.

这篇关于如何获取 GitHub Clone 统计信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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