解决git克隆项目出现fatal无法访问‘https://github.com/xxx/xxx‘Unsupported proxy syntax in‘127.0.0.1:8118‘

当使用git clone时出现如下问题

首先查看git的配置列表

git config --list

如下图 :

可以看到有两个代理配置,http.proxy和https.proxy,就是这两个配置的原因

删除这两项

git config --global --unset http.proxy
git config --global --unset https.proxy

可以看到git可以正常clone项目了

 

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