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