- [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.")
問題描述
當(dāng)在Git Bash中執(zhí)行git push向github上傳一個(gè)PDF文件時(shí),一直卡在writing(75%),試了好多次都不行。
解決思路
- 直接從Github網(wǎng)站上傳文件,點(diǎn)擊Upload files,一頓操作,然后驚喜地得到一個(gè)很有用的報(bào)錯(cuò)信息
yowza, that’s a big file. try again with a file smaller than 25mb.
- Google之,在Quaro上得到了想要的答案,用Git Large File Storage來解決這個(gè)問題
Git Large File Storage
GithubHelp Working with large files和Versioning large files兩篇文章都提出了用GLFS來解決上傳文件大小限制的問題:用Github網(wǎng)站直接上傳的限制是25MB,使用git push命令的限制是100MB。以下是Quaro答案中的一個(gè)回答:
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
那么接下來只要根據(jù)git lfs的教程一步一步地操作就行了。