git:致命的:我不处理协议'http' [英] git: fatal: I don't handle protocol '​​http'

查看:501
本文介绍了git:致命的:我不处理协议'http'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从网页复制并粘贴git clone命令: https://fedorahosted.org/ibus-typing-booster /



我得到这个:

  user @宿主GT; git clone http://git.fedorahosted.org/git/ibus-typing-booster.git 

克隆到'ibus-typing-booster'...
致命的:I不处理协议'http'


解决方案

I复制并粘贴整行 git clone http:// ...



git clone http:// ... 看起来像一个空格,但它是特殊的Unicode字符 strong>!



删除这个字符后,输入一个真实的空格,它就起作用了!



我看到两个显示ascii与特殊unicode字符的方法

Way1:Python



以下是真正的行:

  vi t.txt#copy +粘贴行
python
open('t.txt') .read()
git clone \xe2\x80\x8b\xe2\x80\x8bhttp:// ...



Way2:less



  vi t.txt#copy + paste该行
LESSCHARSET = ascii减vi.txt

如果它看起来像<$ c $ git克隆< E2> 80>< E2>< 80>< 8B>> http:// ,然后你复制粘贴的特殊unicode字符。


I copy and pasted an git clone command from a web page: https://fedorahosted.org/ibus-typing-booster/

I got this:

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'

解决方案

I copied and pasted the whole line git clone http://....

The character between git clone and http://... looks like a space, but it is a special Unicode character!

After removing this character, and entering a real space, it worked!

I see two ways to reveal ascii vs special-unicode-characters

Way1: Python

Here is the real line:

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

Way2: less

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

If it looks like git clone <E2><80><8B><E2><80><8B>http://, then you copy+pasted special-unicode-characters.

这篇关于git:致命的:我不处理协议'http'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆