Options (4)
-I, --includebooleanRemove all staged files matching a specified pattern
Example:
hg remove {{[-I|--include]}} {{pattern}}-X, --excludebooleanRemove all staged files, excluding those that match a specified pattern
Example:
hg remove {{[-X|--exclude]}} {{pattern}}-S, --subreposbooleanRecursively remove sub-repositories
Example:
hg remove {{[-S|--subrepos]}}-A, --afterbooleanRemove 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/fileRemove all staged files matching a specified pattern
hg remove [-I|--include] patternRemove all staged files, excluding those that match a specified pattern
hg remove [-X|--exclude] patternRecursively 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