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]

 

  就可以了

posted @ 2021-11-19 16:53  火娃ღ  阅读(1177)  评论(0编辑  收藏  举报