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

即可解决本问题


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM