【发布时间】:2018-05-23 16:44:41
【问题描述】:
克隆我的回购作品;推回它不会。
第一次克隆无效:
git clone https://github.com/slimsnerdy/testy.git
Cloning into 'testy'...
fatal: unable to access 'https://github.com/slimsnerdy/testy.git/': SSL certificate problem: self signed certificate in
certificate chain
所以我在.gitconfig 文件中添加了以下自定义证书:
[http]
sslCAInfo = U:/ca-bundle.crt
现在可以克隆了:
Cloning into 'testy'...
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 25 (delta 8), reused 6 (delta 1), pack-reused 0
Unpacking objects: 100% (25/25), done.
好的,现在推送:
new-item test.txt
git add *
git commit -m "push test"
git push
Username for 'https://github.com': slimsnerdy
Password for 'https://slimsnerdy@github.com':
remote: Anonymous access to slimsnerdy/testy.git denied.
fatal: Authentication failed for 'https://github.com/slimsnerdy/testy.git/'
当我尝试使用我的手机(绕过公司防火墙)通过个人火锅推送时,它可以正常推送。
为什么clone 使用自定义证书而不使用push?
我想在不使用 ssh 的情况下解决这个问题。
【问题讨论】: