git fatal: unable to access Failed to connect to localhost port 1080: Connection refused

版权声明: https://blog.csdn.net/xiezhongyuan07/article/details/84942626

git 拉取、更新子模块失败,提示失败

Submodule 'libXesBase' (https://git.xxxxx.com/xesoa/libXesBase.git) registered for path 'libXesBase'
Cloning into 'E:/assist/libXesBase'...
fatal: unable to access 'https://git.xxxxx.com/xesoa/libXesBase.git/': Failed to connect to localhost port 1080: Connection refused
fatal: clone of 'https://git.xxxxx.com/xesoa/libXesBase.git' into submodule path 'E:/assist/libXesBase' failed
Failed to clone 'libXesBase'. Retry scheduled
Cloning into 'E:/assist/libXesBase'...
fatal: unable to access 'https://git.xxxx.com/xesoa/libXesBase.git/': Failed to connect to localhost port 1080: Connection refused
fatal: clone of 'https://git.xxxx.com/xesoa/libXesBase.git' into submodule path 'E:/assist/libXesBase' failed
Failed to clone 'libXesBase' a second time, aborting
 

确定问题,查询是否使用了代理: 

git config --global http.proxy
git config --global https.proxy

解决方式:取消代理:

git config --global --unset http.proxy
git config --global --unset https.proxy

猜你喜欢

转载自blog.csdn.net/xiezhongyuan07/article/details/84942626