我从一个网页上复制并粘贴了一个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。
同样的问题发生在我身上,当我刚刚复制url到剪贴板,然后粘贴到终端。重写整个行没有复制过去选项解决了我的问题。
在Android Studio中:
我删除了git克隆,只保留url,它工作!!
我使用双引号的URL,它工作。就像这样
git clone "http://git.fedorahosted.org/git/ibus-typing-booster.git"
工作. .单引号没有用。必须是双引号。
克隆如下:
git clone https://github.com/zendframework/ZendSkeletonApplication.git
给错误:
Cloning into 'ZendSkeletonApplication'...
fatal: I don't handle protocol 'https'
修改为:
git clone https://github.com/zendframework/ZendSkeletonApplication
工作完美,或者你可以只是复制url。 我使用的是操作系统windows 10和giitbash。