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

hg root — Display the root location of a Hg repository. More information: <https://www.mercurial-scm.org/help/

Submitted by: @import:tldr-pages··
0
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 root


Display the root location of the specified repository:
hg root --cwd {{path/to/directory}}

Code Snippets

Display the root location of the current repository

hg root

Display the root location of the specified repository

hg root --cwd {{path/to/directory}}

Context

tldr-pages: common/hg root

Revisions (0)

No revisions yet.