Skip to content

解决 git clone 时提示 SSL 证书错误

git clone GitHub 仓库时,提示 SSL 证书错误。


环境信息

  • git version 2.51.1.windows.1
  • Windows 10

错误信息

text
git clone https://github.com/Charles7c/intellij-platform-plugin-maven-dependency-upgrader.git
Cloning into 'intellij-platform-plugin-maven-dependency-upgrader'...
fatal: unable to access 'https://github.com/Charles7c/intellij-platform-plugin-maven-dependency-upgrader.git/': 
SSL certificate problem: unable to get local issuer certificate

解决方法

bash
git config --global http.sslbackend schannel
Git

最后更新: