HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

hg init — Create a new repository in the specified directory. More information: <https://www.mercurial-scm.org

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecreatecommandnewclispecifiedhg initrepository

Problem

How to use the hg init command: Create a new repository in the specified directory. More information: <https://www.mercurial-scm.org/help/commands/init>.

Solution

hg init — Create a new repository in the specified directory. More information: <https://www.mercurial-scm.org/help/commands/init>.

Initialize a new repository in the current directory:
hg init


Initialize a new repository in the specified directory:
hg init {{path/to/directory}}

Code Snippets

Initialize a new repository in the current directory

hg init

Initialize a new repository in the specified directory

hg init {{path/to/directory}}

Context

tldr-pages: common/hg init

Revisions (0)

No revisions yet.