GitHub.com 的存储库大小限制 [英] Repository size limits for GitHub.com

查看:77
本文介绍了GitHub.com 的存储库大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我一直在使用 GitHub,我想知道 github.com 上托管的文件的存储库限制是多少?我一直想知道这一点,因为我想使用 GitLab,因为它允许每个存储库 10 GB.

Lately I have been using GitHub and I'm wondering, what is the repository limit for files hosted on github.com? I've been wondering this because I was thinking of using GitLab since it allows 10 GB for each repository.

推荐答案

来自 GitHub 的 文档:

From GitHub's documentation:

GitHub 没有任何设置的磁盘配额.我们尝试在合理范围内为所有 Git 存储库提供充足的存储空间.将存储库保持在较小的范围内可确保我们的服务器运行速度快且用户下载速度快.

GitHub doesn't have any set disk quotas. We try to provide abundant storage for all Git repositories, within reason. Keeping repositories small ensures that our servers are fast and downloads are quick for our users.

此外,我们严格限制文件大小超过 100 MB.

In addition, we place a strict limit of files exceeding 100 MB in size.

现在是我的答案的非罐头部分.GitHub 可能允许您存储最大 100MB 的文件,但您也应该警惕不是版本的二进制文件或其他类似的 blob 类型文件.这样做的原因是 Git 不能很好地处理二进制文件,并且存储可能是一个很大的损失.因此,如果您发现每个文件需要 100MB,您应该检查您正在处理的文件类型.

Now for the non-canned part of my answer. GitHub might allow you to store files up to 100MB, but you should also be vigilant to not version binary or other similar blob type files. The reason for this is that Git doesn't handle binaries well, and storage can be a big penalty. So if you find yourself pushing 100MB per file, you should check what type of file you are dealing with.

这篇关于GitHub.com 的存储库大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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