Forrest logo
back to the hg tool

hg-status:tldr:d3c85

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

The command "hg status --added" is used with the Mercurial version control system (hg) to display the status of files that have been added to the repository.

When you add a file to the repository using the "hg add" command, it becomes part of the version control system. The "hg status" command allows you to see the current status of files in your repository.

By appending the "--added" option to the "hg status" command, you are instructing Mercurial to only display the files that have been added but not committed yet. These files are considered part of the repository but have not been included in any commits.

The output of the command will list the added files with their paths or names. This information can help you keep track of the files you have added and verify that they are correctly included in the repository before committing them.

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