-- 错误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