美文网首页
Github上传文件过大(“yowza, that’s a bi

Github上传文件过大(“yowza, that’s a bi

作者: Seven是为了纪念赛虎 | 来源:发表于2018-06-04 18:19 被阅读0次
    • [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%),试了好多次都不行。

    解决思路

    1. 直接从Github网站上传文件,点击Upload files,一顿操作,然后惊喜地得到一个很有用的报错信息

    yowza, that’s a big file. try again with a file smaller than 25mb.

    1. Google之,在Quaro上得到了想要的答案,用Git Large File Storage来解决这个问题

    Git Large File Storage

    GithubHelp Working with large filesVersioning 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的教程一步一步地操作就行了。

    相关文章

      网友评论

          本文标题:Github上传文件过大(“yowza, that’s a bi

          本文链接:https://www.haomeiwen.com/subject/iamysftx.html