连接到git存储库时出现问题:SSL证书错误

时间:2019-05-04 14:34:54

标签: git ssl

此问题是the SSL certificate problem: unable to get local issuer certificate问题的变体。

我仅在给定URL的情况下尝试连接到git存储库:git.repoName.net.au。但是,当我尝试从源中提取时,会收到SSL证书问题消息。

我用下面的代码来解决它:

git config --global http.sslVerify false

这在我收到如下消息时部分起作用:

fatal: unable to update url base from redirection:
asked for: http://git.repoName.net.au/info/refs?service=git-upload-pack
redirect: https://git.repoName.net.au/user/login

我尝试使用以下命令更新给定的登录凭据(用户名,电子邮件和密码)

git config user.name "Username"  
git config user.email "Email@Domain.ru"  
git config user.password "password"  

但这也不起作用。有人提到我使用ssh连接。但是,就我的理解而言,我必须获得一个公共密钥才能连接到-或在服务器上设置一个。

任何有关如何连接到此仓库的建议都将受到赞赏。

0 个答案:

没有答案