git clone 时出现异常:fatal: unable to access 'https://github.com/spring-projects/spring-framework.git/': OpenSSL SSL_read: Connection was reset, errno 10054


git在 clone 代码的时候出现:fatal: unable to access 'https://github.com/spring-projects/spring-framework.git/': OpenSSL SSL_read: Connection was reset, errno 10054

解决方法:

只需要执行以下几行命令:

  git config --global --unset http.proxy

  git config --global --unset https.proxy

  git remote add origin git [github上面以http开头的url]

如果出现:fatal: Not a git repository (or any of the parent directories): .git  ,请先执行 git init,在执行 git remote add origin git [github上面以http开头的url]

 

  就可以了


免责声明!

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



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