挂梯子后git clone报错 -- 已解决
问题现象
使用代理后,会造成Github的clone和push等功能无法正常使用,报错如下所示
fatal: unable to access 'https://github.com/sige5193/bittly.git/': Failed to connect to github.com port 443 after 21095 ms: Couldn't connect to server
解决措施
- 检查本机代理端口(待补图):
Setting -> Network & internet -> Proxy -> Use a proxy server -> Edit -> Port
当前设备端口 33210
- 2.修改Git代理配置:
使用上述端口id 33210 打开git bash进行配置
git config –global http.proxy http://127.0.0.1:33210
git config –global https.proxy http://127.0.0.1:33210
- 3.配置完成后即可进行clone
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments