gpt4 book ai didi

github - 统计 GitHub 上的空存储库数量

转载 作者:行者123 更新时间:2023-12-02 09:55:57 29 4
gpt4 key购买 nike

我只是想知道是否可以计算 GitHub 上空存储库的总数。

如果不适合所有用户,可以为自己做吗?

编辑

我已经尝试过size:0搜索,但似乎返回了很多包含数据的存储库。采用 size:0..1 之类的东西也没有帮助。

如果我尝试搜索关键字empty,但它并没有涵盖所有方面。

更新

我收到了 Brian Levine (GitHub) 的回复

That would be an interesting statistic. We don't have a simple way to do that right now. However, you might be able to use the GitHub API to get close. You could look through public repositories and compare "pushed_at" and "created_at" dates to see if there has been any activity. Additionally, you could find repositories with a "size" of 0. There's more information on how to find this information, and much more, right here:

http://developer.github.com/v3/repos/

最佳答案

你可以:

请注意,使用默认的 README.md 描述文件创建时,“空”存储库仍可以至少有一次提交。
实际上,如OP Aniket comments :

I explained the meaning of empty as: 0-1 commits, max 3 files:

.gitignore
README.md
LICENSE

(注:README is different from README.md)

另一种方法是,对于每个存储库,到 look at the number of commits .
0 或 1 次提交意味着可能是一个空的存储库。

<小时/>

更新:GitHub 确认当前没有方法来确定存储库是否为“空”。
最接近的方法是:

You could look through public repositories and compare "pushed_at" and "created_at" dates to see if there has been any activity

关于github - 统计 GitHub 上的空存储库数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19889899/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com