赞
踩
操作:$ git clone https://github.com/user/repository.git
报错:
Cloning into 'hello-world-js'...
fatal: unable to access 'https://github.com/user/repository.git/': error setting certificate verify locations:
CAfile: E:/**MANAGE**/Git/Git/mingw64/ssl/certs/ca-bundle.crt
CApath: none
原因:安装Git后,修改过安装路径文件夹的名称(MANAGE => MANAGER),即MANAGE文件夹现在不存在
解决:
(1) 查看当前信息 => $ git config -l
反馈结果: http.sslbackend=openssl
http.sslcainfo=E:/MANAGE/Git/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
(2)将报错中的错误文件夹名更正,即将报错中的MANAGE文件夹改为MANAGER文件夹
进行修改 => $ git config --system http.sslcainfo E:/**MANAGER**/Git/Git/mingw64/ssl/certs/ca-bundle.crt
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。