Git:RPC failed; result=56,HTTP code = 0 错误分析及解决方法 2014-10-13 / 20,431 次 / 沙发被抢 /

摘要:本地工程 push 到远程服务器时发生错误 Unable to rewind rpc post data -try increasing http.postBuffer. error:RPC failed;result=56,HTTP code = 0 。通过Git 命令:git config http.postBuffer 524288000 将 http.postBuffer 值提高到超过本地工程大小即可解决问题。

Runtime Environment
OS: Windows 8.1
Git Version: 1.9.4.msysgit.0
Git Tool: SourceTree Version 1.5.2.0
在提交一个本地 Git 项目到远程服务器的时候出现错误:
Unable to rewind rpc post data -try increasing http.postBuffer
error:RPC failed;result=56,HTTP code = 0
日志如下:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack(chunked)

fatal:The remote end hung up unexpectedly
fatal:The remote end hung up unexpectedly


Unable to rewind rpc post data -try increasing http.postBuffer
error:RPC failed;result=56,HTTP code = 0


Pushing to https://www.ifeegoo.com/git/ifeegoo_music_player.git
Everything up-to-date


Completed with errors,see above.

通过 Git 命令:git config http.postBuffer 查看当前项目默认的 postBuffer 值:

ifeegoo@ifeegoo /e/workspace/IfeegooMusicPlayer (ifeegoo)
$ git config http.postBuffer
2M
本地项目的总大小超过 50M,我们通过 Git 命令:git config http.postBuffer 524288000 将 http.postBuffer 值提高到 500M,然后再次 push ,问题解决!
ifeegoo@ifeegoo /e/workspace/IfeegooMusicPlayer (ifeegoo)
$ git config http.postBuffer 524288000
打赏
本博客所有文章如无特别注明均为原创。复制或转载请以超链接形式注明转自ifeegoo,原文地址《Git:RPC failed; result=56,HTTP code = 0 错误分析及解决方法
上一篇: « 下一篇: »
暂无相关文章
Copyright © ifeegoo Time is limited, less is more! / 粤ICP备15109713号 / Theme by Hang & Ben / WordPress / 知识共享许可协议