github clone报错Conection refused
最近,因为要配置emscripten的环境,从github从clone一个项目下来,但是出现以下报错:
fatal: unable to access ‘https://github.com/juj/emsdk.git/‘: Failed to connect to 192.168.11.9 port 1087: Connection refused
于是放狗,但是没卵用。
搞得两眼一抹黑。
于是请教公司老司机,老司机也是费一番功夫,才摆平。
好了,先说报错的问题所在:
先运行git config —list命令,查看配置,问题就在配置里。运行后会看到一堆配置信息:
其中关键的是:
http.proxy=http://192.168.11.9:1087
https.proxy=http://192.168.11.9:1087
可能大家的proxy后的地址不一样,但是不管是什么。
用—unset命令来解决。
解决方法:
运行命令
git config —global —unset http.proxy
和
git config —global —unset https.proxy
还没有评论,来说两句吧...