Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system

Simon Lomax picture Simon Lomax · Jul 7, 2010 · Viewed 28.8k times · Source

Whats the Mercurial hg clone syntax to clone a repository to a folder on a local file system. Say I have a repository in C:\MyProject\ and I want to create a clone in G:\Version Control\MyProject\ - what would the command line be?

Thanks

Answer

otherchirps picture otherchirps · Jul 7, 2010

hg help is your friend. hg help clone yields:

hg clone [OPTION]... SOURCE [DEST]

So, for this case it should be something like:

hg clone C:\MyProject "G:\Version Control\MyProject"