Options (4)
-I, --includebooleanAdd all unstaged files matching a specified pattern
Example:
hg add {{[-I|--include]}} {{pattern}}-X, --excludebooleanAdd all unstaged files, excluding those that match a specified pattern
Example:
hg add {{[-X|--exclude]}} {{pattern}}-S, --subreposbooleanRecursively add sub-repositories
Example:
hg add {{[-S|--subrepos]}}-n, --dry-runbooleanPerform a test-run without performing any actions
Example:
hg add {{[-n|--dry-run]}}Examples (5)
Add files or directories to the staging area
hg add path/to/fileAdd all unstaged files matching a specified pattern
hg add [-I|--include] patternAdd all unstaged files, excluding those that match a specified pattern
hg add [-X|--exclude] patternRecursively add sub-repositories
hg add [-S|--subrepos]Perform a test-run without performing any actions
hg add [-n|--dry-run]made by @shridhargupta | data from tldr-pages