Could not resolve host:github.com 刚开始学git,在GitHub上新建了一个远程仓库,然后想clone到本地,然后就出现“Could not resolve host:github.com“这个问题,网上找了一下解决方法: 编辑/etc/resolv.conf文件,增加下面内容: nameserver 8.8.8.8 或者 nameserver 114.114.114.114 之后再用git clone 就可以把远程仓库clone到本地了