美文网首页
git 提交 HTTP 413 curl 22 The requ

git 提交 HTTP 413 curl 22 The requ

作者: _micang | 来源:发表于2020-10-14 14:37 被阅读0次

- 错误日志: 

提交代码时出现如下错误

Push failed

Delta compression using up to 8 threads

Total 10 (delta 3), reused 0 (delta 0), pack-reused 0

RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

the remote end hung up unexpectedly

the remote end hung up unexpectedly

- 解决思路:

1. 修改本地git postbuffer大小

git config --global http.postbuffer 524288000      // 50M大小

git config --global https.postbuffer 524288000      // 50M大小

 没解决?继续往下:

2. 设置gitlab配置中 max_push_size,记得用管理员账号登录

参照这个链接,https://blog.csdn.net/techfield/article/details/70198077, 

没解决?继续往下:

3. 回忆你的gitlab 部署时候是否用了nginx 代理,如果是的话,去撞个墙,然后回来做如下设置。

设置nginx, client_max_body_size

http: {

    server: {

        client_max_body_size: 1024m;

        ```

    }

}

相关文章

网友评论

      本文标题:git 提交 HTTP 413 curl 22 The requ

      本文链接:https://www.haomeiwen.com/subject/efcwpktx.html