git 提示ssl certificate problem 解决方案

来源:互联网 发布:斗鱼说网络要修改dns 编辑:程序博客网 时间:2024/06/08 11:31

环境:W7,Git2.10.2

问题:使用git push 代码到github上,提示

ssl certificate problem: unable to get local issuer certificate git push

这是因为git 提交代码时需要安全认证,可以通过以下方法设置,取消验证

解决:

找到 git的gitconfig 配置文件,如果你默认安装,路径应该在
C:\Program Files (x86)\Git\etc\gitconfig
notepad++ 打开后,添加下面两行

[http]    sslVerify = false    sslCAinfo = /bin/curl-ca-bundle.crt

保存后,再提交代码就可以了。

0 0
原创粉丝点击