git clone出现 fatal: unable to access 'https://github.com/...'的解决办法(亲测有效)

转自大佬git clone出现 fatal: unable to access 'https://github.com/...'的解决办法(亲测有效)_qq_33349365的博客-CSDN博客

错误:

$ git clone https://github.com/theme-next/hexo-theme-next themes/next
Cloning into 'themes/next'...
fatal: unable to access 'https://github.com/theme-next/hexo-theme-next/': OpenSSL SSL_read: Connection was reset, errno 10054

将https改为ssh时任然报错

 

按照本方法进行处理

依次输入命令

$ git config --global http.proxy http://127.0.0.1:1080


$ git config --global https.proxy http://127.0.0.1:1080


$ git config --global --unset http.proxy


$ git config --global --unset https.proxy

即可解决本问题

posted @ 2022-03-23 16:03  麦哲伦没有企鹅  阅读(2669)  评论(0编辑  收藏  举报