git: 致命的: プロトコル 'http' を処理できません 質問する

git: 致命的: プロトコル 'http' を処理できません 質問する

Web ページから git clone コマンドをコピーして貼り付けました。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'

ベストアンサー1

行全体をコピーして貼り付けましたgit clone http://...

git cloneとの間の文字はhttp://...スペースのように見えますが、これは特殊な Unicode 文字です。

短い答え: この文字を削除し、実際のスペースを入力すると、機能しました。

詳細を愛する人々へ: ASCII文字とUnicode特殊文字を明らかにする方法は2つあります

方法1: Python

実際の行は次のとおりです。

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

方法2: 少ない

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

のようになっている場合はgit clone <E2><80><8B><E2><80><8B>http://、unicode 特殊文字をコピーして貼り付けたことになります。

おすすめ記事