git clone: SSL certificate problem: unable to get local issuer certificate
2015-12-04 15:12
751 查看
因为国内特殊的网络环境,所以用github for windows,在使用git shell的clone命令是会出现这样的情况
git clone https://code.google.com/p/android-os-monitor.osmonitor/ Cloning into android-os-monitor.osmonitor...
error: Unknown SSL protocol error in connection to code.google.com:443 while accessinghttps://code.google.com/p/android-os-monitor.osmonitor/info/refs
那么解决这个问题的办法就是用代理方式去访问了,这里的解决方法中用的是goagent,是在使用goagent的前提下才能执行下面的操作。
打开goagent软件,会看到 listen Address:127.0.0.1:8087,那么在git shell中执行的命令就是:
git config --global http.proxy "127.0.0.1:8087"
这个问题可以解决了,但是遇到了另一个问题:
D:\GitHub> git clone https://github.com/subying/jsbook.git Cloning into 'jsbook'...
fatal: unable to access 'https://github.com/subying/jsbook.git/': SSL certificate problem: unable to get local issuer certificate
提示SSL证书错误。后面用谷歌搜索了一下,发现说这个错误并不重要是系统证书的问题,系统判断到这个行为会造成不良影响,所以进行了阻止,只要设置跳过SSL证书验证就可以了,那么用命令 :
git config --global http.sslVerify false
git clone https://code.google.com/p/android-os-monitor.osmonitor/ Cloning into android-os-monitor.osmonitor...
error: Unknown SSL protocol error in connection to code.google.com:443 while accessinghttps://code.google.com/p/android-os-monitor.osmonitor/info/refs
那么解决这个问题的办法就是用代理方式去访问了,这里的解决方法中用的是goagent,是在使用goagent的前提下才能执行下面的操作。
打开goagent软件,会看到 listen Address:127.0.0.1:8087,那么在git shell中执行的命令就是:
git config --global http.proxy "127.0.0.1:8087"
这个问题可以解决了,但是遇到了另一个问题:
D:\GitHub> git clone https://github.com/subying/jsbook.git Cloning into 'jsbook'...
fatal: unable to access 'https://github.com/subying/jsbook.git/': SSL certificate problem: unable to get local issuer certificate
提示SSL证书错误。后面用谷歌搜索了一下,发现说这个错误并不重要是系统证书的问题,系统判断到这个行为会造成不良影响,所以进行了阻止,只要设置跳过SSL证书验证就可以了,那么用命令 :
git config --global http.sslVerify false
相关文章推荐
- RPC failed; result=22, HTTP code = 411
- git更新已經刪除的文件
- 提取Git每次提交后Commit的文件
- GIT迁移服务器
- 分布式版本管理git入门指南使用资料汇总及文章推荐
- Git远程操作详解
- 25个 Git 进阶技巧(翻译)
- 详解版本控制利器Git,SVN的异同以及适用范围
- Ruby实现的删除已经合并的git分支脚本分享
- 在 Shell 提示符中显示 Git 分支名称的方法
- Git使用基础篇(一些常用命令和原理)
- git fork同步是什么意思?
- Git使用小坑 Out of memory错误的解决方法
- Python的高级Git库 Gittle
- 使用GIT进行源码管理――GUI客户端小结
- 使用git代替FTP部署代码到服务器的例子
- linux系统安装git及git常用命令
- 分享下自己总结的Git常用命令
- Git 常用命令速查表(图文+表格)
- mac git xcrun error active developer path 错误