Mercurial - 克隆 - 未知命令

时间:2015-03-24 03:08:51

标签: macos mercurial

我无法克隆存储库:

$ hg clone​ https://some_url local_folder
hg: unknown command 'clone https://some_url​ local'
Mercurial Distributed SCM

$ type hg
hg is hashed (/usr/local/bin/hg)

$ hg --version
Mercurial Distributed SCM (version 3.3)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

它说,正如你所看到的,clone是未知的命令。

1 个答案:

答案 0 :(得分:1)

它并不是说clone是一个未知的命令。它说克隆与URL一起亮相。

比较你得到的东西:

hg: unknown command 'clone https://some_url​ local'

使用带有参数的实际未知命令:

ry4an@four:~$ hg frozzle long_url_argument_here
hg: unknown command 'frozzle'

请注意我的long_url_argument_here是如何显示的,并且肯定不在错误中的单引号中,但是你的是?

问题在于你如何调用mercurial。要么该空间不是空格,要么您从shell脚本中调用它,并且当您表示$*或者您遇到了错误时,您已使用"$@"别名或其他什么。

无论你的外壳有什么错,不是Mercurial。