情况一

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解决方法参考链接

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐