← 返回命令列表

Linux command

hg-remove 命令

文件

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

常用示例

Remove file

hg remove [file]

Remove with force

hg remove -f [file]

Remove after deletion

hg remove -A

Remove directory

hg remove [directory]

Dry run

hg remove -n [file]

说明

hg remove schedules files for removal from the repository. The files are deleted from the working directory and marked for removal on next commit. The -A flag records removal of files already deleted from the filesystem. Force removes modified files.

参数

-f, --force
Remove even if modified.
-A, --after
Record removal of missing files.
-I, --include _PATTERN_
Include pattern.
-X, --exclude _PATTERN_
Exclude pattern.
-n, --dry-run
Show what would be done.
--help
Display help information.

FAQ

What is the hg-remove command used for?

hg remove schedules files for removal from the repository. The files are deleted from the working directory and marked for removal on next commit. The -A flag records removal of files already deleted from the filesystem. Force removes modified files.

How do I run a basic hg-remove example?

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

What does -f, --force do in hg-remove?

Remove even if modified.