Git错误,无法访问,设置证书验证位置时出错。

4
C:\Users\user\PycharmProjects\Reminder>git push
fatal: unable to access 'https://gitlab.com/Project.git/': error setting certificate verify locations:
  CAfile: C:/Program Files (x86)/Git/mingw32/libexec/ssl/certs/ca-bundle.crt
  CApath: none

我在处理以下错误时遇到了困难。我已经尝试了许多其他类似主题的解决方案,但都没有帮助。此错误出现在我尝试克隆其他存储库时。从我发现的情况来看,这是由于证书路径错误引起的。该证书路径为:C:\Program Files (x86)\Git\mingw32\ssl\certs\ca-bundle.crt。出现错误的原因可能是使用了其他路径。
我已经尝试过以下方法:
1. 重新安装 Git。 2. 安装旧版本的 Git。 3. 运行命令:git config --system http.sslcainfo 'C:\Program Files (x86)\Git\mingw32\ssl\certs\ca-bundle.crt'。 4. 运行命令:git config --system http.sslverify false。 5. 手动复制文件夹到错误提示中显示的路径,但 Git 卡住了,什么也没发生。
运行以下命令:git config --list 后,得到以下信息:
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:\Program Files (x86)\Git\mingw32\ssl\certs\ca-bundle.crt
http.sslbackend=openssl
http.sslverify=false
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
pack.packsizelimit=2g
credential.helper=manager
user.name=beorn
user.email=xxxx@email.com
http.sslverify=false

即使它打印出了正确的路径,但是git使用的是错误的路径...你有什么想法吗?
1个回答

0

你的回答可能只是一条注释。 - MMalke

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接