hg-add
schedules files to be added to the repository on the next commit
TLDR
Add a specific file
$ hg add [file]
Add all new files$ hg add
Add files by pattern$ hg add '*.py'
Add files in directory$ hg add [path/to/directory]
Dry run to preview$ hg add -n [file]
SYNOPSIS
hg add [options] [files...]
DESCRIPTION
hg add schedules files to be added to the repository on the next commit. Without arguments, it adds all new files in the working directory. Use a .hgignore file to exclude files from version control. Added files appear with 'A' status in hg status until committed.
PARAMETERS
-n, --dry-run
Do not perform actions, preview only.-I, --include pattern
Include files matching pattern.-X, --exclude pattern
Exclude files matching pattern.
