git使用pull和push时显示Could not resolve host: ww16.git-scm01.ctyundao.cn

第一步、

用 cmd 拿到 github.com的ip地址

第二步、修改git安装目录中的hosts文件(是个只读文件,复制出来修改只读状态),在底部添加 20.205.243.166 github.com

至此,push成功

posted @ 2021-10-21 10:02  香草味的薄荷糖  阅读(566)  评论(0)    收藏  举报