gpt4 book ai didi

Gitlab 错误推送文件 413 Request Entity Too Large

转载 作者:行者123 更新时间:2023-12-03 16:26:52 39 4
gpt4 key购买 nike

当我尝试推送我的文件时,我遇到了 GIT 问题,这就是发生的情况:

$ git push -u origin dev
Counting objects: 586, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (506/506), done.
Writing objects: 100% (586/586), 36.81 MiB | 1.58 MiB/s, done.
Total 586 (delta 267), reused 40 (delta 29)
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

我已经完成了:
git config http.postBuffer 524288000 ,

所以这不能解决我的问题!
我发现解决方案是修改 nginx 配置,但没有使用 nginx .. 我在 Windows 10 上工作,但没有看到 我应该在哪里增加 client_max_body_size 的值 !!
你对 Windows 上的这个问题有什么想法吗?

最佳答案

您收到此错误是因为 GitLab 端的大小限制太低。
使用管理员帐户登录 GitLab 并在设置/常规/帐户和限制下更改以下值:

  • 最大附件大小 (MB)
  • 最大导入大小 (MB)

  • 并保存更改。它将解决这个问题。

    关于Gitlab 错误推送文件 413 Request Entity Too Large,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48917020/

    39 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com