fatal: unable to access ‘https://github.com/XXXX/’: Failed to connect to 127.0.0.1 port 7890 after 2082 ms: Couldn’t connect to server
解决上述报错需要先关闭加速器
1.命令行执行:
git config --global --unset http.proxy
git config --global --unset https.proxy
2.运行cmd
执行
ipconfig/flushdns
清理dns缓存
3.如果上述步骤无法解决,查看是否绑定了代理设置
键入查看是否设置proxy
git config --global --edit
如果存在,执行
git config --global --unset http.proxy
git config --global --unset https.proxy
清除代理设置
!!!重启电脑检查下是否移除