想要使用git bash推送到GitHub时如何修复SSL证书错误? [英] How to Fix SSL certificate error when want to push to GitHub using git bash?

查看:143
本文介绍了想要使用git bash推送到GitHub时如何修复SSL证书错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 8上使用git bash将一个简单的Web应用程序推送到GitHub.但是当我执行git push origin master时,它说致命:无法访问'https://******** .com/****/******.git/':SSL证书问题:无法获取本地发行者证书".

I am trying to push to GitHub a simple web application using git bash on Windows 8. But when i do git push origin master it says "fatal: unable to access 'https://********.com/****/******.git/': SSL certificate problem: unable to get local issuer certificate".

有人可以在不禁用SSL的情况下帮助我解决此问题.

Could someone help me with this issue, without disabling the SSL.

推荐答案

您可以通过提供SSL证书来修复错误.您可以通过以下任一方式进行此操作:

You can fix the error by giving your SSL certificate. You can do this by either:

  • 编辑您的Git配置文件(在Linux ~/.gitconfig中)并添加:

[http]
    sslCAinfo = <path to your key>

  • 执行以下命令:

  • Executing the following command:

    git config --global http.sslCAinfo <path to your key>
    

  • 这篇关于想要使用git bash推送到GitHub时如何修复SSL证书错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆