我想运行这个 Git 命令:
git submodule add https://github.com/example/example.git
Run Code Online (Sandbox Code Playgroud)
但我收到此错误:
克隆到“C:/projects/xxx/yyy/zzz/”...致命:无法访问“ https://github.com/xxx/yyy.git/ ”:错误设置证书验证位置:
CAfile:C: \Program Files (x86)\git\bin\curl-ca-bundle.crt
CApath:无
致命:将“ 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"
Run Code Online (Sandbox Code Playgroud)
但我收到此错误消息:
错误:无法锁定配置文件 C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied
我怎样才能解决这个问题?