我从一个网页上复制并粘贴了一个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'

当前回答

我使用双引号的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。

如果你使用的是Windows,使用“url”语音标记来打开和关闭你的url Git克隆“your-url-here”

使用backspace删除git clone和url之间的任何内容,然后使用空格键在两者之间添加一个干净的空格。就这么简单。

我复制粘贴了整行git克隆http://....

git克隆和http://..之间的字符。看起来像一个空格,但它是一个特殊的Unicode字符!

简单回答:在移除这个字符并进入一个真实的空间后,它就起作用了!

对于喜欢细节的人:我看到了两种显示ascii字符和特殊unicode字符的方法

Way1: Python

这是真正的台词:

vi t.txt # copy+paste the line
python
open('t.txt').read()
git clone \xe2\x80\x8b\xe2\x80\x8bhttp://...

Way2:更少的

vi t.txt # copy+paste the line
LESSCHARSET=ascii less vi.txt

如果它看起来像git clone <E2><80><8B><E2><80><8B>http://,,那么你复制+粘贴special-unicode-characters。

在visual studio代码选项git:clone 我尝试了每一件事,例如放5退格,删除特殊的Unicode字符!留出空间对我没用

解决方案适合我

简单地打开git bash和粘贴整个git克隆url和完成,

似乎visual studio代码有一些问题