注册了github的账号,设置了如下命令
git config --global user.name
git config --global user.email
新建了库HelloWorld
执行命令git clone git://github.com/yiyayitian/HelloWorld .git
(我的github访问地址是https://github.com/yiyayitian)
得到如下:
Cloning into '.git'...
fatal: Unable to look up github.com (port 9418) (nodename nor servname provided, or not known)
请问这是什么原因导致的呢?
本文介绍了在使用Git从GitHub克隆仓库时遇到的问题及解决方法。主要问题为域名解析错误和未正确配置SSH密钥导致无法克隆。文中提供了使用HTTPS协议替代以及配置SSH密钥的具体步骤。
6490





