Forrest logo
back to the hg tool

hg:tldr:410b4

hg: Check the Mercurial version.
$ hg --version
try on your machine

The command "hg --version" is used to check the version of the Mercurial command-line tool (also known as "hg"). When you run "hg --version" in the command prompt or terminal, it will display information about the version of the installed Mercurial tool on your system. The output typically includes the version number, release date, and additional details like supported extensions or features. This command is helpful to ensure that you have the correct version of Mercurial installed and to verify compatibility with specific features or plugins.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hg tool