在win11上使用git命令行克隆项目时出现 unable to get local issuer certificate问题,本文主要记录查找到的解决办法。
$ git clone https://lanedirt.tech/repo.git
Cloning into 'repo'...
fatal: unable to access 'https://lanedirt.tech/repo.git/': SSL certificate problem: unable to get local issuer certificate
主要原因
主要原因是在安装git的时候选择HTTPS transport backend时选择了OpenSSL library, 更为详细原因见源链接

解决问题方法
不用重新安装git,可以直接修改git设置如下
git config --global http.sslbackend schannel
本文讲述了在Windows11上使用Git命令行遇到的SSL证书问题,即unabletogetlocalissuercertificate,原因在于安装时选择了OpenSSL库。提供了不需重新安装Git的解决方法,即全局配置http.sslbackends为channel。
4889

被折叠的 条评论
为什么被折叠?



