> git push origin master:master fatal: the remote end hung up unexpectedly fatal: the remote end hung up unexpectedly error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Everything up-to-date > git push origin master:master fatal: the remote end hung up unexpectedly fatal: the remote end hung up unexpectedly error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Everything up-to-date > git push origin master:master
首先这种方法是不行的,可能其他情况是可以:
git config –global http.postBuffer 524288000
找了大半天,我使用docker 部署的 gitlab,之前一直是使用IP访问的,昨天申请了域名,解析到该服务器并使用nginx作反向代理。
原因就是nginx上传文件请求大小限制了。
在nginx.conf中的http模块中配置:
client_max_body_size 100m;