fossil-forget

untrack files without deleting them

TLDR

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

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.

INSTALL

sudo apt install fossil
sudo dnf install fossil
sudo pacman -S fossil
sudo apk add fossil
sudo zypper install fossil
brew install fossil
nix profile install nixpkgs#fossil

SEE ALSO

fossil-rm(1), fossil-add(1)

RESOURCES

Homepage · Documentation