1, find github.com and github.global.ssl.fastly.net of IP, you can use IPAddress.com or http://tool.chinaz.com to get ip address
By looking up information on the Internet and found that the problem is resolved dns. However, it should be noted that, github ip address is likely to change, so we sometimes need to update github ip address.
2, added to the hosts file
vim sudo / etc / hosts # in the # host file 151.101.185.194 github.global.ssl.fastly.net 13.250.177.223 github.com
3, Network Service Restart
sudo /etc/init.d/networking restart