What is the repository limit for github.com

烈酒焚心 提交于 2019-12-09 08:07:10

问题


Lately I have been using github and I am wondering, what is the repo limit for files hosted on github.com? I been wondering this because I was thinking of using gitlab since it allows 10gb each repo.

If there is already a second thread like this my apologies, I checked and I couldn't find something like this.


回答1:


From GitHub's documentation:

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.

and

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

Now for the non-canned part of my answer. GitHub might allow you to store files up to 100MB, but you should also be vigilent 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.




回答2:


According to https://help.github.com/articles/what-is-my-disk-quota/ and https://help.github.com/articles/working-with-large-files/ there is not limit on the repo size, but after exceeding 1 GB they might email you and ask to reduce the size. Additionally you will see warnings for pushing files bigger than 50 MB and files bigger than 100 MB won't be accepted.



来源:https://stackoverflow.com/questions/38768454/what-is-the-repository-limit-for-github-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!