Bug
描述
由于在试了网上的这条命令
git config --global http.proxy socks5 127.0.0.1:1080
git config --global https.proxy socks5 127.0.0.1:1080
git config --global http.proxy 127.0.0.1:1080
git config --global https.proxy 127.0.0.1:1080
Bug
描述:Failed to connect to 127.0.0.1 port 1080 after 2024 ms: Couldn’t connect to server
在网上试了好多方法都不行,最后参考:Git报错Failed to connect to 127.0.0.1 port 1080成功解决。
解决方法
git config --global --unset http.proxy
git config --global --unset httpx.proxy
亲测无效
删掉箭头指向的整行
成功ping上了。
penge@DESKTOP-B0LM74I MINGW64 /e/Github
$ ping www.github.com
Pinging github.com [20.205.243.166] with 32 bytes of data:
Reply from 20.205.243.166: bytes=32 time=108ms TTL=111
Reply from 20.205.243.166: bytes=32 time=110ms TTL=111
Reply from 20.205.243.166: bytes=32 time=111ms TTL=111
Request timed out.
Ping statistics for 20.205.243.166:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 108ms, Maximum = 111ms, Average = 109ms
使用git config --list
查看,代理信息已经没有了