LinuxCommandLibrary

fossil-rm

schedule files for removal

TLDR

Remove a file

$ fossil rm [file]
copy
Remove with force
$ fossil rm -f [file]
copy
Remove with dry run
$ fossil rm --dry-run [file]
copy

SYNOPSIS

fossil rm [options] file...

DESCRIPTION

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.

PARAMETERS

--dry-run

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

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community