赞
踩
方案一:
在项目路径下右键打开 “git bash”,输入下面这条命令(一般没什么用):
git config --global http.sslVerify "false"
方案二:
在git bash命令行中依次输入以下命令:
git config --global http.sslBackend "openssl"
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
上面第二条命令需在Git安装路径下执行
方案三:
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
方案一:
检查电脑是否设置了代理,如果有则取消勾选代理服务器,使用自动检测设置:
方案二:
在cmd中,输入ping github.com看能否成功:
如果请求超时,则需修改host文件,路径一般为"C:\Windows\System32\drivers\etc",修改步骤如下:
(1)打开ipaddress.com,查询如下两个域名,并分别记录下其对应的ip:
1)、github.com
2)、github.global.ssl.fastly.net
(2)更新host文件
140.82.112.4 github.com
199.232.69.194 github.global.ssl.fastly.net
(3)打开cmd,输入ipconfig /flushdns,清理DNS后再试下
方案三:
如果以上都不成功,可以多重复几次操作,后面说不定就行了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。