httpx

Git克隆工程报错:Failed to connect to 127.0.0.1 port 1080

你说的曾经没有我的故事 提交于 2020-10-02 02:57:43
前言 我想在Mac上安装 wondershaper ,本来想使用Mac上的brew安装,但brew的软件安装列表中没有wondershaper,于是便准备下载Git工程进行安装。 下载wondershaper的git工程,输入: git clone https://github.com/magnific0/wondershaper.git fatal: unable to access 'https://github.com/magnific0/wondershaper.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused 这个报错很奇怪,git应该直接访问的是github的远程端口,怎么会去连接本地的1080端口呢,看样子应该是有代理设置,于是我在网上搜索了相关的资料,找到了对应的解决方法。 解决方法 查看http代理 git config --global http.proxy 输出: http://127.0.0.1:1080 查看https代理 git config --global https.proxy 输出: http://127.0.0.1:1080 取消代理设置 git config --global --unset http.proxy git config --global -