git bush的时候出现的问题
1.报了这个错:fatal: unable to access 'https://github.com/.......': OpenSSL SSL_read: Connection was reset, errno 10054
产生原因:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错
参考网上解决办法:解除ssl验证后,再次git即可
git config --global http.sslVerify "false"
2.Go下载模块提示连接失败dial tcp 142.251.42.241:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
解决办法
①查看go env中的GOSUMDB变量
go env
②关闭GOSUMDB
go env -w GOSUMDB=off
③设置代理为https://goproxy.cn,direct
go env -w GOPROXY=https://goproxy.cn,direct
④再次下载
3.报错go.mod file not found in current directory or any parent directory
将 GO111MODULE 设置为 auto,以便仅当 go.mod 文件存在于当前目录或任何父目录中时,才启用模块感知模式。
go env -w GO111MODULE=auto
4.fatal: unable to access 'https://github.com/.../.git': Could not resolve host: github.com
这里我给的都是https所以直接用第二个命令就好
git config --global --unset http.proxy
git config --global --unset https.proxy