Very annoying!
I’ve been trying different version control systems for sometime now and I just couldn’t get git on Windows to work.
I was constantly getting:
$ git fetch “https://some.website.com”
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing https://some.website.com/info/refs
I found the solution here.
- Open Notepad with Administrator privileges
- Open the file gitconfig. For me, this was in the folder: C:\Program Files (x86)\Git\etc
- The line “sslCAinfo = /bin/curl-ca-bundle.crt” is using relative references. Change this to “sslCAinfo = C:/Program Files (x86)/Git/bin/curl-ca-bundle.crt”
Too easy!
Comments