Popular blog tags

github.com-File and repository size limitations



What is my disk quota?

What is my disk quota(english)?

What is my disk quota(chinese)?

File and repository size limitations

We recommend repositories remain small, ideally less than 1 GB, and less than 5 GB is strongly recommended. Smaller repositories are faster to clone and easier to work with and maintain. Individual files in a repository are strictly limited to a 100 MB maximum size limit.

2.文件大于 50 MB 时的警告
如果尝试添加或更新大于 50 MB 的文件,您将从 Git 收到警告。 更改仍将成功推送到仓库.
3.文件大于 100 MB 时阻止推送到仓库
GitHub 限制了仓库允许的文件大小,如果文件大于最大文件100 MB的限制,将会阻止推送到仓库。
GitHub blocks pushes that exceed 100 MB.

4.Files that you add to a repository via a browser are limited to 25 MB per file.
5.You can add larger files, up to 100 MB each, via the command line


Adding a file to a repository

Files that you add to a repository via a browser are limited to 25 MB per file.

How to add a file to a repository via a browser step by step


Adding a file to a repository via GitHub Desktop

install git tools




输入命令:git config http.postBuffer 524288000

之前git中的配置是没有这一项的,执行完以上语句后输入git config -l可以看到配置项的最下面多出了一行我们刚刚配置的内容. (52428000=500×1024×1024,即500M)


Git Large File Storage(Git LFS)

Git LFS lets you push files to GitHub that are larger than the Git push limit.

Every account using Git Large File Storage receives 1 GB of free storage and 1 GB a month of free bandwidth. If the bandwidth and storage quotas are not enough, you can choose to purchase an additional quota for Git LFS.


How to add a file via a Git LFS step by step

Git LFS使用方式