一、Git出现错误Could not resolve host: github.com
解决方法:
1、先ping主机地址,然后编辑文件etc/hosts
sudo vi /etc/hosts
2、按键盘i启动编辑模式,然后添加github地址
::1 localhost
192.30.255.112 github.com
3、esc退出编辑模式
:wq保存并退出
二、Git出现SSL certificate problem: unable to get local issuer certificate
解决方法:
git config --global http.sslVerify false