Git之git push报错protocol error: bad line length 8192怎么处理

  1. 故障现象
    git pull报错
$ git push
Counting objects: 40, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (38/38), done.
fatal: protocol error: bad line length 8192 47.18 MiB/s
fatal: sha1 file '<stdout>' write error: Broken pipe
error: failed to push some refs to 'https://gitlab.xxx.com/liuym/biji.git'
  1. 解决方法
    设置 http.postBuffer
$ git config --global http.postBuffer 524288000
$ git push
Counting objects: 40, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (38/38), done.
Writing objects: 100% (40/40), 2.30 GiB | 1.08 MiB/s, done.
Total 40 (delta 11), reused 0 (delta 0)
To https://gitlab.xxx.com/liuym/biji.git
   ba7327c..ec4c7fa  main -> main

注意: 值不能设置的太大,比如多加一个0,否则还是报错

posted @   minseo  阅读(185)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
历史上的今天:
2023-12-15 conda怎么安装在Linux
2021-12-15 第5章:组件即组件间的通信
2021-12-15 第4章:自定义指令与过渡
2020-12-15 CentOS7设置密码提示过于简单化的快速解决办法
点击右上角即可分享
微信分享提示