【发布时间】:2018-01-15 07:22:52
【问题描述】:
我正在尝试使用 Github Desktop 和 git shell 从 Github 进行克隆,但不断收到此错误:
Cloning into 'C:\Users\John Doe\workspace\MyProject'...
fatal: unable to access 'https://github.com/JohnDoe/MyProject.git/':
schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) -
The revocation function was unable to check revocation for the certificate.
拉取现有存储库时出现同样的问题。
我已经尝试将~/.ssh/github-ssh.pub 中的 SSH 密钥上传到 Github 设置,但没有任何帮助。
编辑:刚刚检查过,即使我尝试克隆一个不存在的存储库也会发生。
【问题讨论】:
-
要使用 ssh 密钥,您需要将 URL 从
https://github.com/JohnDoe/MyProject.git更改为git@github.com:JohnDoe/MyProject.git。