您的位置:首页 > 理论基础 > 计算机网络

git clone 时遇到fatal http request

2017-11-21 10:47 357 查看
参考:http://blog.csdn.net/ZHENFENGSHISAN/article/details/57566709

robot@ubuntu:~/rosbyexamplecode$ git clone https://github.com/pirobot/rbx1.git Cloning into 'rbx1'...
error: Couldn't resolve host 'github.com' while accessing https://github.com/pirobot/rbx1.git/info/refs fatal: HTTP request failed
robot@ubuntu:~/rosbyexamplecode$ ping github.com
ping: unknown host github.com


解决办法:

cd /etc

sudo vim hosts

底部添加

192.30.253.112 github.com
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: