GIT推送错误error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)

情况一

Counting objects: 100% (25515/25515), done.
Delta compression using up to 4 threads
Compressing objects: 100% (18794/18794), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedlyiB | 19.00 KiB/s
Writing objects: 100% (25503/25503), 28.46 MiB | 298.00 KiB/s, done.
Total 25503 (delta 5409), reused 25463 (delta 5393), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

错误原因:
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
错误:RPC失败;HTTP/2 stream 0没有完全关闭:CANCEL (err 8)

解决方法:
方法一:将git 远程地址改为自己的ssh地址

git remote set-url origin git@github.com:github用户名/仓库名.git

方法二:增加git缓冲区大小

git config --global http.postBuffer 524288000

stackoverflow解决方法参考链接

  • 14
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值