LinuxCommandLibrary

fossil-forget

untrack files without deleting them

TLDR

Forget a file

$ fossil forget [file]
copy
Forget multiple files
$ fossil forget [file1] [file2]
copy
Forget with dry run
$ fossil forget --dry-run [file]
copy

SYNOPSIS

fossil forget [options] file...

DESCRIPTION

fossil forget removes files from source control but leaves them in the working directory. This is useful when you've added files by mistake and want to untrack them without deleting them.
Unlike fossil rm or fossil delete, forgotten files remain on disk untouched. The command only affects the staging area, removing the scheduled addition of files that haven't been committed yet.

PARAMETERS

--dry-run

Show what would be forgotten.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community