您的位置:首页 > 汽车 > 新车 > git 下载失败

git 下载失败

2024/11/15 21:43:11 来源:https://blog.csdn.net/u010669626/article/details/139376467  浏览:    关键词:git 下载失败

-- 错误0

加 sudo

-- 错误

$ git clone https://github.com/espressif/arduino-esp32.git -b release/v2.x arduino
Cloning into 'arduino'...
remote: Enumerating objects: 53886, done.
remote: Counting objects: 100% (1194/1194), done.
remote: Compressing objects: 100% (568/568), done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
error: 5871 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

下面的办法没用,还会出现错误, 最后没有下面的设置,就是多试了好几次,换用手机热点,最后下载成功

 [git init
初始化git,绝大多数人肯定是下了git就去下东西了,好运的话确实能一次下完,没做这一步就去按别的贴去设置的,喜提“fatal: not in a git directory”
git config http.postBuffer 524288000
修改 git 提交文件大小上限
没 init 过的绝对 “fatal: not in a git directory”
git config --global http.sslVerify "false"
没 init 过的也绝对 “fatal: not in a git directory”
git clone 【你的git链接】 --depth 1 ]


【真正的解决方法】error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054_total 873 (delta 544), reused 0 (delta 0), pack-re-CSDN博客

-- 错误1

不能下载,或端口错误

设置 git 代理为全局代理, 看之前的文章

git config --global http.proxy   
git config --global https.proxy  

Git报错: Failed to connect to github.com port 443 解决方案-CSDN博客

  解决 Failed to connect to github.com port 443:connection timed out_failed to connect to gitlab. connection timed out-CSDN博客

---- 端口错误

Failed to connect to github.com port 443: Connection refused问题解决-CSDN博客

进行了上步操作还是提示同样的报错,根本没有解决问题,估计此问题并非是代理引起的,或许是DNS解析,我们可以修改hosts文件,修改ip地址和域名的映射关系,在DNS解析前先会尝试走hosts然后在找不到的的情况下再DNS解析,修改hosts文件域名解析就会先走hosts中的ip和域名的映射关系

查询到的GitHub IP地址,再将其加到hosts 

C:\Windows\System32\drivers\etc

--   错误2

remote: Enumerating objects: 354980, done.
remote: Counting objects: 100% (52906/52906), done.
remote: Compressing objects: 100% (963/963), done.
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
 

git clone报错RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)_not closed cleanly: cancel (err 8) 2549 bytes of b-CSDN博客

-- git 下载特定分支

master branch of this repo is to be used with ESP-IDF v5.1, while the release/v2.x branch is to work with ESP-IDF v4.4

不能下载加 sudo

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com