← 返回命令列表

Linux command

fossil-rm 命令

文件

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

常用示例

Remove a file

fossil rm [file]

Remove with force

fossil rm -f [file]

Remove with dry run

fossil rm --dry-run [file]

说明

fossil rm schedules files for removal from the repository on the next commit. By default, files remain on disk and are only removed from version control. The --hard option deletes files from both the repository and the filesystem. This is useful for cleaning up unwanted files while also removing them from version control. Unlike fossil forget, which only works on files not yet committed, fossil rm handles files already tracked in the repository.

参数

--dry-run
Show what would be removed.
-f, --force
Force removal.
--hard
Also delete from disk.

FAQ

What is the fossil-rm command used for?

fossil rm schedules files for removal from the repository on the next commit. By default, files remain on disk and are only removed from version control. The --hard option deletes files from both the repository and the filesystem. This is useful for cleaning up unwanted files while also removing them from version control. Unlike fossil forget, which only works on files not yet committed, fossil rm handles files already tracked in the repository.

How do I run a basic fossil-rm example?

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

What does --dry-run do in fossil-rm?

Show what would be removed.