LinuxCommandLibrary

hg-status

hg-status

TLDR

Display the status of changed files

$ hg status
copy


Display only modified files
$ hg status --modified
copy


Display only added files
$ hg status --added
copy


Display only removed files
$ hg status --removed
copy


Display only deleted (but tracked) files
$ hg status --deleted
copy


Display changes in the working directory compared to a specified changeset
$ hg status --rev [revision]
copy


Display only files matching a specified glob pattern
$ hg status --include [pattern]
copy


Display files, excluding those that match a specified glob pattern
$ hg status --exclude [pattern]
copy

Copied to clipboard