github 體積限制
僅供了解,切勿濫用。希望自覺維護良好社區。
單文件
單個文件大於 50M 時會收到警告, 100M 時會被拒絕。
該警告將告訴您哪些文件太大:
remote: warning: Large files detected.
remote: warning: File big_file is 55.00 MB; this is larger than GitHub’s recommended maximum file size of 50 MB
推送信息big_file已接收並保存到GitHub上的存儲庫中,但是您應該考慮完全刪除文件和提交。
100 MB推送限制
如果您將大於100 MB的文件推送到GitHub,Git將拒絕推送並告訴您哪個文件太大:
remote: warning: Large files detected.
remote: error: File giant_file is 123.00 MB; this exceeds GitHub’s file size limit of 100 MB
由於,此推送被拒絕giant_file。提交將不會保存到GitHub上的存儲庫中。
用戶或倉庫
用戶賬號下所有倉庫體積總和沒有限制。
單個倉庫硬限制為100G。超過75G時會收到警告,推薦為1G以下。
通過瀏覽器將文件添加到存儲庫,則文件不能大於25 MB。
參考
我的磁盤配額是多少? https://help.github.com/en/articles/what-is-my-disk-quota
大文件的條件 https://help.github.com/en/articles/conditions-for-large-files