【发布时间】:2019-05-28 01:21:02
【问题描述】:
我正在浏览 Github 的分叉指南:https://guides.github.com/activities/forking/ 我正在尝试将存储库克隆到我的计算机上。但是,运行命令:
$ git clone https://github.com/./Spoon-Knife.git
Cloning into 'Spoon-Knife'...
fatal: protocol 'https' is not supported
也尝试使用 SSH:
$ git clone git@github.com:./Spoon-Knife.git
Cloning into 'Spoon-Knife'...
Warning: Permanently added the RSA host key for IP address '.' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我是否需要更改计算机上的某些配置设置,或者这是 GitHub 的问题?
编辑:我已将我的用户名和 IP 地址替换为“。”
【问题讨论】:
-
你能检查一下复制的文本中是否有任何奇怪的特殊字符。也许尝试输入整个 URL 而不是从 github 复制它。也许还要检查 github.com 是否真的解析为 github,或者是否有东西将其重定向到另一台服务器。
-
或者您计算机上的某些其他软件损坏了安装的 git(请参阅stackoverflow.com/questions/15553161/…)。在这种情况下,重新安装它可能会解决问题。