2016-05-07 67 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和使用網絡電纜連接網絡

也許這是一個關於網絡的問題

相關問題