赞
踩
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
在使用gitlab上传文件时,遇到了这样一个问题,令人头疼!!!
git clone https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git
正克隆到 'tianjin-project'...
fatal: unable to access 'https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
提示:以下是本篇文章正文内容,下面案例可供参考
git config --global http.sslverify false
终端输入:
git config --list
(base) l@l:~/f/PDet$ git config --list
safe.directory=/home/l/bladedisc
safe.directory=/home/l/EasyCV
user.email=z@163.com
user.name=z
http.sslverify=false
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
可以看到这一行,代表完成了安全证书的修改
http.sslverify=false
终端输入:
git config --global --unset http.sslverify
查看
(base) l@l:~/f/PDet$ git config --list
safe.directory=/home/l/bladedisc
safe.directory=/home/l/EasyCV
user.email=z@163.com
user.name=z
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://192.168.10.9/team-1/projects/safety-group/tianjin-project.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
因为修改安全证书不是一个安全的行为,建议上传好文件后,修改回默认的安全状态!!!!
以上就是解决git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.的一个方法!!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。