0
点赞
收藏
分享

微信扫一扫

SECURITY WARNING TLS certificate verification has been disabled!

GG_lyf 2022-07-27 阅读 102


git pull时提示如下信息:

jiankunking@pc MINGW64 /f/Code/Go/src/git.jiankunking.net/test/auth (dev)
$ git pull
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.

解决方案:
修改代码.git文件夹下config文件,将其中的url替换一下

替换前

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://git.jiankunking.net/test/auth.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "dev"]
remote = origin
merge = refs/heads/dev
[branch "v2"]
remote = origin
merge = refs/heads/v2

替换后

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = git@git.jiankunking.net:test/auth.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "dev"]
remote = origin
merge = refs/heads/dev
[branch "v2"]
remote = origin
merge = refs/heads/v2

个人微信公众号:

SECURITY WARNING TLS certificate verification has been disabled!_.net

个人博客
​​​http://www.jiankunking.com​​

作者:jiankunking


举报

相关推荐

0 条评论