我从一个网页上复制并粘贴了一个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,它工作!!

其他回答

克隆如下:

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。

解决方法很简单:

1-复制git路径。例如:http://github.com/yourname/my-git-project.git

2-打开记事本并粘贴它。然后从记事本复制路径。

3-粘贴路径到命令行

这是它。

我使用双引号的URL,它工作。就像这样

git clone "​​http://git.fedorahosted.org/git/ibus-typing-booster.git"

工作. .单引号没有用。必须是双引号。

如果你正在使用Git Extensions GUI或GitHub Desktop(意味着如果你正在使用任何UI软件而不是命令行工具)来克隆repo,那么你必须只复制和粘贴URL,即https://..。所以没有必要在URL之前有git克隆,因为软件会自己做。

请不要从剪贴板上复制。 只需从浏览器的位置/地址栏复制url。