【问题标题】:Gitlab error push files 413 Request Entity Too LargeGitlab错误推送文件413请求实体太大
【发布时间】:2018-08-01 16:33:30
【问题描述】:

当我尝试推送我的文件时,我遇到了 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 上的这个问题有任何想法吗?

【问题讨论】:

标签: git github gitlab


【解决方案1】:

您收到此错误是因为 GitLab 端的大小限制太低。

使用管理员帐户登录 GitLab 并在设置/常规/帐户和限制下更改以下值:

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

并保存更改。它将解决此问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-01
    • 1970-01-01
    • 2017-01-11
    • 2016-07-16
    • 2017-03-05
    • 2014-12-30
    • 2014-12-23
    相关资源
    最近更新 更多