Forrest logo
back to the hg tool

hg:tldr:d1893

hg: Call help on a command.
$ hg help ${command}
try on your machine

The command "hg help ${command}" is used to display the help information for a specific Mercurial command.

Here's a breakdown of the command:

  • "hg" refers to the Mercurial version control system.
  • "help" is a built-in command in Mercurial to display help information.
  • "${command}" is a placeholder that you need to replace with the actual command for which you want to see help.

For example, if you want to see the help information for the "commit" command, you would replace "${command}" with "commit" and the command becomes "hg help commit". Running this command will produce the relevant help documentation explaining how to use the "commit" command in Mercurial.

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