Computer Scientist, Graduate Student, and Geek

Tag: mercurial

Mercurial Over SSH

April 12, 2010

To clone a Mercurial (hg) repository over SSH, use the command

hg clone ssh://hostname/path/to/repo
replacing hostname with the hostname of the computer who you would like to connect to via SSH to obtain the repository and path/to/repo with the path to the repository, relative to your home directory. To use a directory relative to the root directory of the remote host, add additional slash after the hostname
hg clone ssh://hostname//path/to/repo

Categories: Development, Linux

Tags: mercurial, ssh