我想运行这个Git命令:
git submodule add https://github.com/example/example.git
但是我遇到了这个错误:
克隆至'C:/projects/xxx/yyy/zzz/'... 致命错误:无法访问 'https://github.com/xxx/yyy.git/' :设置证书验证位置时出错:
CA文件: C:\Program Files (x86)\git\bin\curl-ca-bundle.crt
CA路径:没有
致命错误:将 'https://github.com/xxx/yyy.git' 克隆至子模块路径 'C:/projects/xxx/yyy/zzz/example' 失败
因此,为了解决这个问题,我正在尝试运行以下命令:
git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"
但是我收到了这个错误消息:
错误:无法锁定配置文件C:/Program Files/Git/mingw64/etc/gitconfig:权限被拒绝
我应该怎么修复它?
--system
切换。 - orhtej2