# hg root > 显示 Hg 仓库的根位置。 > 更多信息:。 - 显示当前仓库的根位置: `hg root` - 显示指定仓库的根位置: `hg root --cwd {{path/to/directory}}`