6fedcom.github.io icon indicating copy to clipboard operation
6fedcom.github.io copied to clipboard

Github: error cloning my private repository

Open fxxqq opened this issue 7 years ago • 1 comments

从GitHub上更新提交代码,总是报如下错误:

Push failed: Failed with error: fatal: unable to access 
‘https://github.com/HLQ-Struggle/TextWatchers.git/‘:
 error setting certificate verify locations

I have seen this on Windows, with msysgit 1.7.2.3. You have to fix the path to bin/curl-ca-bundle.crt. I had to specify the absolute path, using back-slashes:

git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"

or — not really recommended — you may choose to switch off SSL checks completely by executing:

git config --system http.sslverify false

For both cases, this will result in changes to [git-install-dir]/etc/gitconfig file, which may be edited directly, too.

(Original solutions found at http://github.com/blog/642-smart-http-support)

fxxqq avatar Jul 03 '18 05:07 fxxqq

test评论

fxxqq avatar Jul 04 '18 09:07 fxxqq