gue*_*tli 299 git whitespace clone
我从网页上复制并粘贴了一个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'
Run Code Online (Sandbox Code Playgroud)
gue*_*tli 615
我复制并粘贴了整条线git clone http://...
.
之间的性格git clone
和http://...
看起来像一个空间,但它是一种特殊的Unicode字符!
简短的回答:删除这个角色,并进入一个真实的空间,它的工作!
对于喜欢细节的人:我看到两种方式来揭示ascii vs special-unicode-characters
这是真正的路线:
vi t.txt # copy+paste the line
python
open('t.txt').read()
git clone \xe2\x80\x8b\xe2\x80\x8bhttp://...
Run Code Online (Sandbox Code Playgroud)
vi t.txt # copy+paste the line
LESSCHARSET=ascii less vi.txt
Run Code Online (Sandbox Code Playgroud)
如果它看起来像git clone <E2><80><8B><E2><80><8B>http://
,那么你复制+粘贴的特殊unicode字符.
J.H*_*our 23
我只是增加5之间的"空间" S clone
和url
:
git clone ?https://<PATH>/<TO>/<GIT_REPO>.git
Run Code Online (Sandbox Code Playgroud)
它的工作原理!
Raj*_*jan 15
摘要:键入URL而不是在命令行中粘贴它.它对我有用.
小智 13
主要是因为你在终端上点击"Ctrl + V"或"Ctrl + Shift + V"时会出现一些看不见的unicode字符.不要复制和粘贴整个命令.相反,键入 git clone,然后使用右键单击+粘贴复制并粘贴URL .
mhn*_*mhn 11
我使用双引号作为URL并且它起作用.所以像
git clone "??http://git.fedorahosted.org/git/ibus-typing-booster.git"
Run Code Online (Sandbox Code Playgroud)
工作..单引号不帮助.它必须是双引号.
Chr*_*llo 11
我的解决方案:
git clone
。git clone
。git clone
和https://...
。git clone
,并https://...
直到有git clonehttps://...
Enter
。小智 5
解决方案很简单:
1-复制您的 git 路径。例如: http: //github.com/yourname/my-git-project.git
2-打开记事本并粘贴它。然后从记事本复制路径。
3-将路径粘贴到命令行
就是这样。