Git推送错误:RPC失败; 结果= 56,HTTP代码= 200致命:远程端挂起意外致命

 DTor惜涵_237 发布于 2023-01-01 11:19

在执行git push时,我收到此错误:

Username for 'https://github.com': Newbie
Password for 'https://Newbie@github.com':
Counting objects: 11507, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8210/8210), done.
Writing objects: 100% (11506/11506), 21.75 MiB | 0 bytes/s, done.
Total 11506 (delta 2213), reused 11504 (delta 2211)
efrror: RPC failed; result=56, HTTP code = 200
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

我也尝试过:git config http.postBuffer 524288000,但仍然出错..还试过:git config --global http.postBuffer 2M通过引用git push错误:RPC失败; result = 56,HTTP代码= 0

请有人帮我解决这个问题吗?

3 个回答
  • 将Git缓冲区大小增加到您的仓库最大的单个文件大小:

    git config --global http.postBuffer 157286400
    

    2023-01-01 11:20 回答
  • 此错误是由我的公司防火墙引起的。

    2023-01-01 11:20 回答
  • 请看这里:https://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

    问题很可能是因为你的git缓冲区太低了.

    您需要通过将git config var"http.postBuffer"设置为524288000来增加Git的HTTP缓冲区.

    git config http.postBuffer 524288000
    

    2023-01-01 11:20 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有