# hg init > Create a new repository in the specified directory. > More information: . - Initialize a new repository in the current directory: `hg init` - Initialize a new repository in the specified directory: `hg init {{path/to/directory}}`