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

当前回答

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

其他回答

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

克隆如下:

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。

我简单地在克隆和url之间添加了5个“空格”:

  git clone     ​https://<PATH>/<TO>/<GIT_REPO>.git

它确实有效!

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