← 返回命令列表

Linux command

hg-status 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show all changed files

hg status

Show only modified files

hg status -m

Show only added files

hg status -a

Show untracked files

hg status -u

Show changes in specific revision

hg status --change [rev]

Show clean files

hg status -c

说明

hg status displays the state of files in the working directory. Status codes: M (modified), A (added), R (removed), C (clean), ! (missing), ? (untracked), I (ignored). Use hg diff to see actual content changes.

参数

-m, --modified
Show only modified files.
-a, --added
Show only added files.
-r, --removed
Show only removed files.
-d, --deleted
Show only deleted (missing) files.
-c, --clean
Show only clean (unchanged) files.
-u, --unknown
Show only untracked files.
--change _rev_
Show changes in revision.

FAQ

What is the hg-status command used for?

hg status displays the state of files in the working directory. Status codes: M (modified), A (added), R (removed), C (clean), ! (missing), ? (untracked), I (ignored). Use hg diff to see actual content changes.

How do I run a basic hg-status example?

Run `hg status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -m, --modified do in hg-status?

Show only modified files.