在windows11下的终端执行git clone命令时:
git clone https://github.com/zzhmy/get-programming-with-go.git
出现错误提示:
Cloning into 'get-programming-with-go'...
fatal: unable to access 'https://github.com/zzhmy/get-programming-with-go.git/': SSL certificate problem: unable to get local issuer certificate
产生该错误的原因:
是由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。
只需要执行下面命令,关闭验证就可以解决:
git config --global http.sslVerify false