snippetbashTip
hg root — Display the root location of a Hg repository. More information: <https://www.mercurial-scm.org/help/
Viewed 0 times
thecommandclilocationhg rootrootrepositorydisplay
Problem
How to use the
hg root command: Display the root location of a Hg repository. More information: <https://www.mercurial-scm.org/help/commands/root>.Solution
hg root — Display the root location of a Hg repository. More information: <https://www.mercurial-scm.org/help/commands/root>.Display the root location of the current repository:
hg rootDisplay the root location of the specified repository:
hg root --cwd {{path/to/directory}}Code Snippets
Display the root location of the current repository
hg rootDisplay the root location of the specified repository
hg root --cwd {{path/to/directory}}Context
tldr-pages: common/hg root
Revisions (0)
No revisions yet.