前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >github--解决github文件不能超过100M

github--解决github文件不能超过100M

作者头像
潇洒
发布2023-10-20 10:51:56
3400
发布2023-10-20 10:51:56
举报
文章被收录于专栏:石头岛

错误

上传github文件带了测试数据,结果测试数据太大,上传不了:

代码语言:javascript
复制
Enumerating objects: 66, done.
Counting objects: 100% (66/66), done.
Delta compression using up to 8 threads
Compressing objects: 100% (52/52), done.
Writing objects: 100% (55/55), 170.58 MiB | 1.55 MiB/s, done.
Total 55 (delta 26), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (26/26), completed with 5 local objects.
remote: error: Trace: 405ebb8940b239aec85cd8d2b57faa2b154ec135647a1ae27c891ec512d61129
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File data/1212888 is 412.17 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To github.com:forfreeday/java.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'github.com:forfreeday/java.git'

解决

调整上传大小限制

代码语言:javascript
复制
git config --global http.postBuffer 524288000

查看是否生效

代码语言:javascript
复制
git config -l

http.postbuffer已经调整到: 52428000=500×1024×1024,等于 500M。

http.postbuffer=524288000 core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019-05-31,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 错误
  • 解决
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档