Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用hg clone ssh://user@ip:/path/to/repo .,但我需要指定一个端口号。我试过包括一个-p之后,hg clone但这让我无处可去。我以前做过,但不记得了:-\
hg clone ssh://user@ip:/path/to/repo .
-p
hg clone
语法(from hg help urls,称为 from hg help clone)是:
hg help urls
hg help clone
ssh://[user@]host[:port]/[path][#revision]
因此,在:和之间/你应该放你的端口号。
:
/