- [Github上传文件过大(“yowza, that’s a big file. try again with a file smaller than 25mb.")]
- [问题描述]
- [解决思路]
- [Git Large File Storage]
Github上传文件过大(“yowza, that’s a big file. try again with a file smaller than 25mb.")
问题描述
当在Git Bash中执行git push
向github上传一个PDF文件时,一直卡在writing(75%),试了好多次都不行。
解决思路
- 直接从Github网站上传文件,点击Upload files,一顿操作,然后惊喜地得到一个很有用的报错信息
yowza, that’s a big file. try again with a file smaller than 25mb.
- Google之,在Quaro上得到了想要的答案,用Git Large File Storage来解决这个问题
Git Large File Storage
GithubHelp Working with large files和Versioning large files两篇文章都提出了用GLFS来解决上传文件大小限制的问题:用Github网站直接上传的限制是25MB,使用git push
命令的限制是100MB。以下是Quaro答案中的一个回答:
You can upload files up to 100MB. You will get a warning at 50. However, according to What is my disk quota?, if you upload a file using your browser, the limit is 25MB.
What you can do and how you can do it is detailed in Working with large filesand Versioning large files
那么接下来只要根据git lfs
的教程一步一步地操作就行了。
网友评论