# hg init > 在指定目录中创建一个新仓库。 > 更多信息:。 - 在当前目录中初始化一个新仓库: `hg init` - 在指定目录中初始化一个新仓库: `hg init {{path/to/directory}}`