hg commit

Commit all staged or specified files to the repository. More information: https://www.mercurial-scm.org/doc/hg.1.html#commit.

hg commit

hg commit path/to/file_or_directory

hg commit --message message

hg commit --include pattern

hg commit --exclude pattern

hg commit --interactive