error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
位置:
首页>文章>详情
分类:
教程分享
>
Java教程
阅读
(1300)
2023-03-28 11:29:14
问题描述
git 提交代码报错 :error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
导致原因
1. 本地git缓存设置太小。
2. 私有git服务器前面有nginx类型反向代理工具缓存设置太小。
解决办法
针对第一个原因,设置git缓存大小即可
git config --global http.postBuffer 1048576000
针对第二个原因
找到代理服务器的配置文件,增加缓存大小配置,以nginx为例:
location / {
client_max_body_size 500M;
proxy_pass http://172.16.0.112:3000;
}
增加配置信息 client_max_body_size 500M;
地址:https://www.leftso.com/article/1089.html