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