我从一个网页上复制并粘贴了一个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-粘贴路径到命令行
这是它。
其他回答
克隆如下:
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。
使用backspace删除git clone和url之间的任何内容,然后使用空格键在两者之间添加一个干净的空格。就这么简单。
这主要是由于一些不可见的unicode字符,如果你在终端中按“Ctrl+V”或“Ctrl+Shift+V”就会出现。不要复制和粘贴整个命令。 相反,输入git clone,然后使用右键单击+粘贴复制并粘贴url。
这只是发生在我们身上,没有任何空白的问题,并将https:更改为http:修复它…
在visual studio代码选项git:clone 我尝试了每一件事,例如放5退格,删除特殊的Unicode字符!留出空间对我没用
解决方案适合我
简单地打开git bash和粘贴整个git克隆url和完成,
似乎visual studio代码有一些问题