我从一个网页上复制并粘贴了一个git克隆命令:https://fedorahosted.org/ibus-typing-booster/
我得到了这个:
user@host> git clone http://git.fedorahosted.org/git/ibus-typing-booster.git
Cloning into 'ibus-typing-booster'...
fatal: I don't handle protocol 'http'
我从一个网页上复制并粘贴了一个git克隆命令:https://fedorahosted.org/ibus-typing-booster/
我得到了这个:
user@host> git clone http://git.fedorahosted.org/git/ibus-typing-booster.git
Cloning into 'ibus-typing-booster'...
fatal: I don't handle protocol 'http'
当前回答
在Android Studio中:
我删除了git克隆,只保留url,它工作!!
其他回答
同样的问题发生在我身上,当我刚刚复制url到剪贴板,然后粘贴到终端。重写整个行没有复制过去选项解决了我的问题。
在Android Studio中:
我删除了git克隆,只保留url,它工作!!
你也可以使用文本编辑器:
将URL粘贴到文本编辑器中 复制刚才从文本编辑器中粘贴的URL 将其粘贴到命令行中
我使用双引号的URL,它工作。就像这样
git clone "http://git.fedorahosted.org/git/ibus-typing-booster.git"
工作. .单引号没有用。必须是双引号。
这只是发生在我们身上,没有任何空白的问题,并将https:更改为http:修复它…