commands.sh

hg remove

all

Remove specified files from the staging area.

More info →

Options (4)

-I, --includeboolean

Remove all staged files matching a specified pattern

Example: hg remove {{[-I|--include]}} {{pattern}}
-X, --excludeboolean

Remove all staged files, excluding those that match a specified pattern

Example: hg remove {{[-X|--exclude]}} {{pattern}}
-S, --subreposboolean

Recursively remove sub-repositories

Example: hg remove {{[-S|--subrepos]}}
-A, --afterboolean

Remove files from the repository that have been physically removed

Example: hg remove {{[-A|--after]}}

Examples (5)

Remove files or directories from the staging area

hg remove path/to/file

Remove all staged files matching a specified pattern

hg remove [-I|--include] pattern

Remove all staged files, excluding those that match a specified pattern

hg remove [-X|--exclude] pattern

Recursively remove sub-repositories

hg remove [-S|--subrepos]

Remove files from the repository that have been physically removed

hg remove [-A|--after]
made by @shridhargupta | data from tldr-pages