Forrest logo
back to the hg tool

hg-status:tldr:02ced

hg-status: Display only modified files.
$ hg status --modified
try on your machine

This command retrieves a list of modified files in a Mercurial repository.

Explanation:

  • hg refers to the Mercurial version control system.
  • status is a command in Mercurial used to display the state of files in the repository.
  • --modified is an option or parameter for the status command. It filters the result to show only the files that have been modified since the last commit.

By running hg status --modified, Mercurial will list the names of the modified files in the repository. These files have undergone changes, but their changes have not been committed yet.

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