idea使用git推送、下载失败error setting certificate verify locations:

今天使用idea像往常一样打开放到coding团队开发的项目。

首先就是更新,看是否有小伙伴体提交了代码

结果发现无论是推送还是更新下载都失败
克隆:

Clone failed: unable to access 'https://git.coding.net/chen_xiaohai/leave-system.git/': error setting certificate verify locations:

更新:

Fetch failed: unable to access 'https://git.coding.net/chen_xiaohai/leave-system.git/': error setting certificate verify locations:

 

后来从网上看了许多文章

基本答案就是:

这是因为git 提交代码时需要安全认证,可以通过以下方法设置,取消验证

解决:

找到 git的config 配置文件,路径应该在 
C:\ProgramData\Git\config ,添加下面两行

打开git bash,键入以下命令,从而关闭证书校验

git config --system http.sslverify false


上面就是找到的解决方法:

但因为对git的命令操作不熟悉,一直都是用ides提交。

所以想了一下看到是打开git bash,想到桌面右击有一个git bash,突然想起是之前移动过git,可能是因为这个。

移动后图标是看不到的,当然现在已经修复正常

idea使用git推送、下载失败error setting certificate verify locations:_第1张图片

 所以,最后我的解决方案就是:

重新安装git,并且进入idea更换路径的配置

如果出现下面错误就是setting中git的路径配置有错

Can't start Git: D:\software\computerLanguage\java\git\bin\git1.exe
            Probably the path to Git executable is not valid. Fix it.

 

 技术有限。。。有更多其他方法还请指出

你可能感兴趣的:(项目问题)