Gitlab推失失误

J. *_*ing 13 git push gitlab

当我尝试将任何东西推送到我自己的gitlab服务器时,我不断收到此错误:

Push failed
Failed with error:
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed;
curl 56 Recv failure: Connection was reset
Run Code Online (Sandbox Code Playgroud)

我不知道为什么我一直收到这个错误.我一直试图推动,然后突然冒出它成功推动它.但是之后我试图推出的所有东西都给了我同样的错误.

这是一个更详细的日志:

16:21:39.932: [gallery] git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:master
Counting objects: 12, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.88 MiB | 25.00 KiB/s, done.
Total 12 (delta 3), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Done
error: RPC failed; curl 56 Recv failure: Connection was reset
Run Code Online (Sandbox Code Playgroud)

小智 12

请尝试以下方法之一:

方法1:

git config --global http.postBuffer 157286400
Run Code Online (Sandbox Code Playgroud)

方法2:在Gitlab服务器中
增加Nginx配置的" client_max_body_size ".

查看此链接以获取更多信息:https: //confluence.atlassian.com/stashkb/git-push-fails-client-intended-to-send-too-large-chunked-body-590251250.html

希望他们会有用!祝好运!!!