git-bash中无法访问github服务器的问题
1.使用git从github克隆仓库出现以下错误代码
fatal: unable to access 'https://github.com/boostorg/python.git/': Failed to con nect to github.com port 443 after 21067 ms: Couldn't connect to server
2.使用scoop的命令scoop update也会出现类似的错误
fatal: unable to access 'https://github.com/ScoopInstaller/Scoop.git/': Failed to connect to 127.0.0.1 port 443 after 2077 ms: Couldn't connect to server
3.问题出现的原因
本机系统代理端口和git端口不一致
4.解决问题:查看系统代理端口,然后配置git端口
查看本机系统的代理端口:我用的clash for windows, 默认端口是7890
# 在git-bash或cmd或powershell中配置git端口
git config --global http.proxy http://127.0.0.1:7890