git 解析域名出错:Could not resolve host:....

Scroll Down

git clone项目报错:

git clone http://556a1e04dd13/aaa/aaa.git

报错信息:

Cloning into 'applet'...
fatal: unable to access 'http://556a1e04dd13/aaa/aaa.git/': Could not resolve host: 556a1e04dd13

解决方式:把域名换成 IP

git clone http://IP/aaa/aaa.git