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
首先打开命令行全局配置git
git config –global http.postBuffer 524288000
结果无效!
之前用的一直好好的然后就成这样啦,回想一下git所在服务器原来是直接访问的后来改成nginx转发后访问啦,于是想可能是nginx配置有问题
于是网上查可能的原因,于是找到解决方法,打开nginx.conf中的http配置段中加入
client_max_body_size 100m;
重启nginx后问题消失
转自:https://www.zhaokeli.com/article/8427.html