参考: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