问题:
Enumerating objects: 118, done.
Counting objects: 100% (78/78), done.
Delta compression using up to 8 threads
Compressing objects: 100% (42/42), done.
Writing objects: 100% (46/46), 10.93 MiB | 7.09 MiB/s, done.
Total 46 (delta 19), reused 0 (delta 0)
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
解决:
1.git config --global http.postBuffer 524288000
或者是nginx
2.nginx.conf client_max_body_size 50m;

本文介绍了解决在使用Git进行代码推送时遇到的HTTP 413 Request Entity Too Large错误的方法。通过调整git配置文件中http.postBuffer的大小或修改nginx.conf中的client_max_body_size参数,可以有效避免因请求实体过大导致的远程端意外挂断问题。
2762

被折叠的 条评论
为什么被折叠?



