我从一个网页上复制并粘贴了一个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'
当前回答
你也可以使用文本编辑器:
将URL粘贴到文本编辑器中 复制刚才从文本编辑器中粘贴的URL 将其粘贴到命令行中
其他回答
与这个问题相关的回答。 错误-致命:我不处理协议'git克隆https' 我试图克隆git项目到我新安装的VScode在我的Linux系统,我复制了整个url从位桶,这就像
Git 克隆 https://abc@bitbucket.org/abcuser/myproject.git
但实际上它运行命令
Git clone git clone https://abc@bitbucket.org/abcuser/myproject.git
在位桶中。 简单地做以下步骤: 1. 输入Ctr + p;这将打开命令框。进入并打开“克隆” 2. 现在只需将git存储库的url粘贴到这里。例如:https://abc@bitbucket.org/abcuser/myproject.git。 3.在输入你的git密码之后,屏幕上就会出现。在这里输入git密码。 4. 完成了。
克隆如下:
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之间添加了5个“空格”:
git clone https://<PATH>/<TO>/<GIT_REPO>.git
它确实有效!
我使用双引号的URL,它工作。就像这样
git clone "http://git.fedorahosted.org/git/ibus-typing-booster.git"
工作. .单引号没有用。必须是双引号。
这主要是由于一些不可见的unicode字符,如果你在终端中按“Ctrl+V”或“Ctrl+Shift+V”就会出现。不要复制和粘贴整个命令。 相反,输入git clone,然后使用右键单击+粘贴复制并粘贴url。