问题
在使用 vscode
上传源文件时产生报错信息如下:
fatal: unable to access ‘https://github.com/Joker0x00/algorithm.git/’: Could not resolve host: github.com
原文链接
https://blog.csdn.net/weixin_44296929/article/details/111242452
解决方案
通过上述网址查询 github 的 ip 地址
修改hosts 文件
C:\Windows\System32\drivers\etc\hosts
140.82.112.3 github.com