tldr/pages/common/hg-init.md

289 B

hg init

Create a new repository in the specified directory. Homepage: https://www.mercurial-scm.org/doc/hg.1.html#init.

  • Initialise a new repository in the current directory:

hg init

  • Initialise a new repository in the specified directory:

hg init {{path/to/directory}}