我是在clone項目的時候報的這個錯誤,因爲clone網速特別慢,因爲看到網上說,可以配置http.proxy來加快速度,結果速度沒有加快,反而不能用了,出現了Failed to connect to 127.0.0.1 port 1080: Connection refused錯誤
嘗試了一下辦法
1.命令行刪除配置
git config -l //查看配置項
有這兩個配置項,於是想通過命令行刪除掉
git config --unset http.https
git config --unset https.https
git config --unset http.proxy
git config --unset https.proxy
均沒有刪除掉
2.找到git的配置文件刪除掉
在用戶的根路徑下輸入
ls -a #查看隱形文件
我們找到了.gitconfig 的文件,在這個文件裏面找到並刪除就可以了