欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 教育 > 高考 > github——指标统计

github——指标统计

2025/2/23 22:31:12 来源:https://blog.csdn.net/wyy546792341/article/details/142756516  浏览:    关键词:github——指标统计

github——指标统计

  • 它的作用
  • 特定项目统计
  • 首页展示

github-readme-stats是一个可以统计指定用户github指标的项目。可以使用此项目统计自己的github,用于首页展示。效果如图:

在这里插入图片描述

它的作用

它可以:

  • 统计git操作
  • 统计账户编程语言构成比例
  • 解除github只能置顶6个项目的限制
  • 自定义卡片主题

    更多详情,请浏览项目仓库:中文文档

特定项目统计

在项目的README文件中添加,修改usernamerepo,更改为自己的名称和仓库即可。

# 统计git操作
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true&layout=compact)# 统计语言
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=WangYuanye421&layout=compact)](https://github.com/anuraghazra/github-readme-stats)# 展示仓库,通过此方式解除github首页 pin数量的限制
<a href="https://github.com/anuraghazra/github-readme-stats"><img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" />
</a>
<a href="https://github.com/anuraghazra/convoychat"><img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" />
</a>

首页展示

创建与自己github同名的仓库,并创建README.md,你会看到github模版提示:

xxx/xxx is a ✨ _special_ ✨ repository 
because its `README.md` (this file) appears on your GitHub profile.

也就是说,和用户名同名的仓库的README.md会自动展示在首页。那么将上述统计逻辑应用在这个README.md中即可。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词