git提交push到远程时出现error: RPC failed; HTTP 413 curl 22

 Counting objects: 80, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (75/75), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
fatal: The remote end hung up unexpectedly
Writing objects: 100% (80/80), 42.70 MiB | 12.01 MiB/s, done.
Total 80 (delta 47), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

首先打开命令行全局配置githtml

git config –global http.postBuffer 524288000

结果无效!nginx


以前用的一直好好的而后就成这样啦,回想一下git所在服务器原来是直接访问的后来改为nginx转发后访问啦,因而想多是nginx配置有问题
git

因而网上查可能的缘由,因而找到解决方法,打开nginx.conf中的http配置段中加入bash

client_max_body_size 100m;

重启nginx后问题消失服务器


转自:https://www.zhaokeli.com/article/8427.htmlcurl

相关文章
相关标签/搜索