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.