Git提交HTTP 500 curl 22 The requested URL returned error: 500

nginx的client_max_body_size 不足会导致这个问题,这个在gogs配置中已经注意到并且修改了
类似如下

http {
    include       mime.types;
    include       conf.d/*.conf; #包含多个配置文件
    default_type  application/octet-stream;
    client_max_body_size 100M;
}

但是在git配置中,也会有引发这个问题的情况,以下便可以解决

git config --global http.postBuffer 157286400

扫描二维码,在手机上阅读!

发表评论

电子邮件地址不会被公开。 必填项已用*标注