我从一个网页上复制并粘贴了一个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'
当前回答
解决方法很简单:
1-复制git路径。例如:http://github.com/yourname/my-git-project.git
2-打开记事本并粘贴它。然后从记事本复制路径。
3-粘贴路径到命令行
这是它。
其他回答
我简单地在克隆和url之间添加了5个“空格”:
git clone https://<PATH>/<TO>/<GIT_REPO>.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。
摘要:键入url,而不是复制粘贴到命令行中。这对我很管用。
看起来,如果你复制粘贴存储库链接,你最终会遇到这个问题。
我已经注意到这一点了
如果你在GitHub上使用复制按钮,然后在GitHub (Windows)中粘贴URL,它会抛出这个错误 如果你选择链接,然后粘贴,它就可以工作,或者你也可以只输入URL,也可以工作。
所以我认为这可能是GitHub复制按钮的问题
我使用双引号的URL,它工作。就像这样
git clone "http://git.fedorahosted.org/git/ibus-typing-booster.git"
工作. .单引号没有用。必须是双引号。