【Git】问题汇总

在push的时候显示 protocol error: bad line length 8192

我在本地创建了一个gogs服务器,现在正在上传代码,但是出现了上述的这个问题。

解决方法

设置本地http.postBuffer(待验证)

方法一:全局配置

bash 复制代码
git config --global http.postBuffer 524288000 

方法二:当前仓库配置

bash 复制代码
git config http.postBuffer 524288000

查看当前的Git配置

bash 复制代码
git config --list

设置gogs的最大文件上线。

相关推荐
南_山无梅落19 小时前
Git 结合 Gitee 使用教程:从入门到实战
git·gitee
这就是佬们吗19 小时前
Windows 的 CMD 网络环境:解决终端无法联网与更新的终极指南
java·windows·git·python·spring·maven
醇氧1 天前
【git】WARNING: connection is not using a post-quantum key exchange algorithm.
git
一只程序熊1 天前
Git不常用操作记录
git
小龙1 天前
【Git 报错解决】 远程仓库 origin 已存在(`remote origin already exists`)
git·报错
BORN(^-^)2 天前
Git 操作概要
git
bigHead-2 天前
Git合并操作详解:安全高效地合并远程分支
git·安全·elasticsearch
C_心欲无痕2 天前
ts - 交叉类型
前端·git·typescript
秋饼2 天前
【K8S测试程序--git地址】
git·容器·kubernetes
小龙2 天前
【Git 报错解决】本地无有效提交无法推送(`src refspec main does not match any`)
git·github·报错