问题描述

将git包在本地克隆时出现这个错误.

git本地克隆时失败: SSL certificate problem

 

 

解决办法

找到.gitconfig文件,在http项添加 sslVerify = false.

git本地克隆时失败: SSL certificate problem

 注: 上面这个是针对单一库的,如果希望对所有库都关闭ssl校验, 那就要用下面这句:

global http.sslVerify false

 

===================================

这个解决办法是从stackoverflow上找到的: https://stackoverflow.com/questions/9008309/how-do-i-set-git-ssl-no-verify-for-specific-repos-only

For a single repo

git config http.sslVerify false

For all repo

git config --global http.sslVerify false

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-10-04
  • 2021-11-01
  • 2021-06-21
  • 2021-07-09
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2021-12-10
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-11-07
相关资源
相似解决方案