I would like to run this Git command:
git submodule add https://github.com/example/example.git
But I get this error:
Cloning into 'C:/projects/xxx/yyy/zzz/'... fatal: unable to access 'https://github.com/xxx/yyy.git/': error setting certificate verify locations:
CAfile: C:\Program Files (x86)\git\bin\curl-ca-bundle.crt
CApath: none
fatal: clone of 'https://github.com/xxx/yyy.git' into submodule path 'C:/projects/xxx/yyy/zzz/example' failed
So, to fix this, I am trying to run this command:
git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"
But I get this error message:
error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied
How can I fix this?