2016-05-07 71 views
10

GIT中推失败,以下错误推送操作错误:RPC失败:卷曲52

fatal: RPC failed: curl 52: Empty reply from server 

上载的情况下,成功只有一个文件被修改,添加或删除。

以下设置不可靠

git config --global --add core.compression -1 

工作Git版本2.8.2是在Ubuntu 14.04上运行,而我既OpenSSL和GNUTLS汇编尝试。

ssh遥控器也失败。

问题是遇到的

bitbucket 
github 
gitlab 

故障安全答案库赞赏

+0

执行任何命令到服务器的工作?你可以做'git push'吗? –

+0

git push仅适用于修改单个文件。 – sulimo

+0

此问题似乎有很多原因,包括服务器关闭或使用旧版本的Git。 –

回答

-1

我对Arch Linux的,Git版本2.8.2同样的问题,不能推至到位桶回购。 克隆和拉工程。

+0

@Dado:抱歉在这里发表评论,我无法评论你的答案。我之前尝试更改postBuffer大小,但它没有工作,我有一个很好的互联网连接,并且我修改了只有4个不太大的文件(几百行C++代码〜50行全部改变)。尽管如此,我试过ssh,但它也失败了:'致命的:远程端意外挂断' – Usern4me

+0

有趣的,我有问题,而不是;)尝试与他们打开一张票,他们是非常好的客户服务。(我能想到的唯一的事情就是确保你没有意外地仍然使用HTTPS) – Dado

2

我曾与Gideon @ atlassian聊天,他建议通过HTTPS使用SSH来修复“curl 52”错误。

对于我切换到SSH固定的问题。下面是完整的答案:

This is a HTTP/HTTPS timeout issue involving either some large commit size, or a weak network. If you're cloning, can you try to see if you can clone the repository using this method:

https://stackoverflow.com/a/22317479

Can you try to see if running this command before any git operations help as well:

git config --global http.postBuffer 524288000

Also, this issue usually won't occur in SSH; so maybe it is worth trying to set up SSH and then do the operation through SSH:

https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html

+0

谢谢,它的工作原理。我找到了切换到SSH的方式:https://help.github.com/articles/changing-a-remote-s-url/#switching-remote-urls-from-https-to-ssh –

7

在终端使用sudo来克隆,或类型:

git config --global http.postBuffer 157286400 

它的工作对我来说

+0

完美!它为我工作 –

+0

在Mac OS X上为我工作在BitBucket回购 – razzed

3

我继工作。

git config --global core.compression 0 

git clone --depth 1 <repo> // partial clone to truncate the amount of info coming down 

#cd repo // go into the new directory and 

git fetch --unshallow //retrieve the rest of the clone 

git pull --all //final pull 

希望,这可能会有帮助的人有同样的问题。

+0

您节省了我的回报! –

0

显然这是HTTPS问题的一个问题。 切换到SSH可以解决所有存储库的问题。

0

以下为我工作。 停止WIFI和使用网络电缆连接网络

也许这是一个关于网络的问题

相关问题