git提交代码,里面文件最大的有80M,git push提交时报错了:
RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
原因一般有两种:
1、本地git缓存设置太小。
这个的解决方法是:设置缓存大小
git config --global http.postBuffer 1048576000
2、私有git服务器前面有nginx类型反向代理工具缓存设置太小
解决方法是:找到代理服务器的配置文件,增加缓存大小配置,以nginx为例:
location / { client_max_body_size 500M; proxy_pass http://172.16.0.112:3000; }