6fedcom.github.io
6fedcom.github.io copied to clipboard
Github: error cloning my private repository
从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)
test评论