致命的Git:不支持协议'https' [英] Git fatal: protocol 'https' is not supported
问题描述
我正在阅读Github的分叉指南: https://guides.github.com/activities/forking / 并且我正在尝试将存储库克隆到我的计算机上.但是,运行命令:
I am going through Github's forking guide: https://guides.github.com/activities/forking/ and I am trying to clone the repository onto my computer. However, running the command:
$ 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的问题?
Do I need to change some configuration setting on my computer or is this a problem with GitHub?
我已将用户名和IP地址替换为".
I have replaced my username and IP address with "."
推荐答案
问题可能就是这个.
您尝试使用
Problem is probably this.
You tried to paste it using
- CTRL + V
- CTRL +V
之前,它不起作用,所以您继续将其粘贴到经典
before and it didn't work so you went ahead and pasted it with classic
- 右键单击-粘贴**.
- Right Click - Paste**.
每当您在终端上输入 CTRL + V时,都会很遗憾地添加
Sadly whenever you enter CTRL +V on terminal it adds
- 一个隐藏 ^?
(至少在我的机器上是这样编码的).
(at least on my machine it encoded like that).
您仅在您之后出现的字符
the character that you only appears after you
- 退格
(继续尝试git bash).
(go ahead an try it on git bash).
因此您的链接变为^?https://...
这是无效的.
这篇关于致命的Git:不支持协议'https'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!