系统Mac OS High Sierra, 想将git上的某个repo clone到本机,出现以下错误。
原因是我在代理(梯子)开启的状况下clone,解决方法关掉梯子,再次clone就ok了。
如何设置proxy的方法见 https://stackoverflow.com/questions/20370294/could-not-resolve-host-github-com-error-while-cloning-remote-repository-in-git
MJ@MJdeMacBook-Pro ⮀ ~ ⮀ git clone git@github.com:AnattaGuo/anattaguo.github.io.git
Cloning into 'anattaguo.github.io'...
ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.