fxxqq / 6fedcom.github.io

frank的前端养成记(hexo博客)
https://6fed.com
22 stars 5 forks source link

Github: error cloning my private repository #72

Open fxxqq opened 6 years ago

fxxqq commented 6 years ago

从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 commented 6 years ago

test评论