当前位置:   article > 正文

处理GitHub不允许上传大于100M文件问题_推送操作包括一个超过github的100mb文件大小限制的文件。请从历史记录中删除该文

推送操作包括一个超过github的100mb文件大小限制的文件。请从历史记录中删除该文

自己平常用git作为项目版本控制工具,在往代码托管仓库github提交代码时,由于自己的commit中包含了一个几百兆的字符串文件,git push失败,并报以下错误:

Counting objects: 33, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (33/33), done.
Writing objects: 100% (33/33), 82.14 MiB | 3.17 MiB/s, done.
Total 33 (delta 13), reused 0 (delta 0)
remote: Resolving deltas: 100% (13/13), completed with 6 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: 521034d3abb4a142c2d2a6d9bcef7bd5
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File src/string/findMostPoem.txt is 490.51 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/my/my.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/my/my.git'

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

意思是有大文件,更多信息可到http://git.i

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/953654
推荐阅读
相关标签
  

闽ICP备14008679号