Linux command
fossil-delete 命令
安全
复制后可按需替换文件名、目录或参数。
常用示例
Delete a file
fossil delete [file]
Delete with dry run
fossil delete --dry-run [file]
Delete with force
fossil delete -f [file]
说明
fossil delete is an alias for fossil rm. It schedules files for removal from version control on the next commit. This command is provided for convenience and compatibility. All options and behaviors are identical to fossil rm. By default, files remain on disk and are only removed from version control.
参数
- -n, --dry-run
- Show what would happen without modifying anything.
- --hard
- Also delete the files from the working check-out, not only from version control.
- --soft
- Keep files in the working check-out (this is the default). Overrides --hard if both are given.
- --case-sensitive _BOOL_
- Override the repository case-sensitivity setting for the file name match.
- --reset
- Undo a prior, uncommitted deletion — the files return to normal tracking status. Cannot be combined with flags other than --verbose and --dry-run.
- -v, --verbose
- Used with --reset to print each restored file.
FAQ
What is the fossil-delete command used for?
fossil delete is an alias for fossil rm. It schedules files for removal from version control on the next commit. This command is provided for convenience and compatibility. All options and behaviors are identical to fossil rm. By default, files remain on disk and are only removed from version control.
How do I run a basic fossil-delete example?
Run `fossil delete [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --dry-run do in fossil-delete?
Show what would happen without modifying anything.