Git Clone遇到的網絡訪問錯誤問題Failed connect to github.com:443

fatal: unable to access 'https://github.com/kimiyoung/transfer/': Failed connect to github.com:443

如果是新安裝的git沒有任何配置的話:
配置代理訪問

git config -l

查看配置列表

git config --global http.proxy "localhost:1080"
git config --global https.proxy "localhost:1080"

再次查看git config -l
會看到多出了兩個配置,一個是http.proxy,另一個是https.proxy
在這裏插入圖片描述

然後git clone 想要的東西即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章