GitHub常见问题汇总
fatal: unable to access ‘https://github.com/xxxx/xxx.git/’: Could not resolve host: github.com
- 解决方法:
- 排除是否没有设置代理,代理设置参考方法:
- $ git config –global http.proxy “http://上网账号:上网密码@代理地址”
- 参考: Git如何使用代理
- 若1无法解决,多次尝试后仍无效,那就上网搜其他方法吧
- 排除是否没有设置代理,代理设置参考方法:
fatal: unable to access ‘https://github.com/xxxx/xxx.git/’: Could not resolve proxy: xxxx
- 解决办法:
- 查询代理
> git config --global http.proxy - 取消代理设置
> git config --global --unset http.proxy
- 查询代理