Gitlab推失失误

时间:2016-04-29 14:04:21

标签: 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

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

这是一个更详细的日志:

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

2 个答案:

答案 0 :(得分:12)

请尝试以下方法之一:

方法1

git config --global http.postBuffer 157286400

方法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

希望它们有用!祝你好运!!!

答案 1 :(得分:0)

当主机从 http://gitlab.company.com/group/myproject/' 更改为 http://gitlab.company.net/group/myproject/ 时,我收到此错误。要更新远程头,我们可以从 IDE 执行以下步骤(我使用的是 Intellij IDE)

IntelliJ -> VCS -> Git -> 遥控器(编辑、删除或添加新遥控器)