Go 异常 + Error

一、Go异常

1、【unable to access ‘https://github.com/用户名/仓库名.git/‘: SSL certificate problem 解决的问题】

D:\GIT_workspace\go-valet-driving-system\backend>kratos new verifyCode
 Creating service verifyCode, layout repo is https://github.com/go-kratos/kratos-layout.git, please wait a moment.

Cloning into 'C:\Users\Administrator\.kratos\repo\github.com\go-kratos/kratos-layout@main'...
fatal: unable to access 'https://github.com/go-kratos/kratos-layout.git/': SSL certificate problem: unable to get local issuer certificate

[31mERROR: Failed to create project(exit status 128)[m

服务器不能识别git的SSL证书,操作停止执行

解决方式:

$ git config --global http.sslVerify false

干我们这行,啥时候懈怠,就意味着长进的停止,长进的停止就意味着被淘汰,只能往前冲,直到凤凰涅槃的一天!

你可能感兴趣的:(golang,开发语言,后端)