Display the root location of the specified repository

hg root

  • Display the root location of a Hg repository.
    More information: <https://www.mercurial-scm.org/doc/hg.1.html#root>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install hg root on any operating system with command-not-found.com