首页 > 学院 > 操作系统 > 正文

git clone遇到error setting certificate verify locations

2024-06-28 16:02:38
字体:
来源:转载
供稿:网友

d:/git>git clone https://git.oschina.net/javaTest/scala-myRPC.gitCloning into 'scala-myRPC'...fatal: unable to access 'https://git.oschina.net/javaTest/scala-myRPC.git/': error setting certificate verify locations:  CAfile: D:/soft/git/bin/curl-ca-bundle.crt  CApath: none

git clone 项目地址报错,解决方案:

启动 git-bash 

输入 git config --system http.sslcainfo "D:/soft/git/bin/curl-ca-bundle.crt" 或者 git config --system http.sslverify false

查看我本地目录里面没有 *.crt 文件,使用git config --system http.sslverify false

完成后再执行 git clone

d:/git>git clone https://git.oschina.net/javaTest/scala-myRPC.gitCloning into 'scala-myRPC'...remote: Counting objects: 35, done.remote: ComPRessing objects: 100% (23/23), done.remote: Total 35 (delta 7), reused 0 (delta 0)Unpacking objects: 100% (35/35), done.Checking connectivity... done.完成


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表