Sourcetree报错 Failed to connect to 127.0.0.1 port 1086: Connection refused

关键词:sourcetree, 报错, Shadowsocks

pull或push时报错

fatal: unable to access 'https://github.com/xxx/xxx.git/': Failed to connect to 127.0.0.1 port 1086: Connection refused

报错原因

设置了git全局代理,且Shadowsocks未打开。

解决方法

打开Shadowsocks,或关闭git全局代理。

关闭git全局代理的方法见:Git使用代理