Skip to content

clean

Restore the working tree to a fresh checkout of HEAD.

Lists what a clean would discard, asks, then restores tracked files and removes untracked ones. *.env.local files are kept at any depth under any flag: a machine secret exists in no git history, so removing one cannot be undone.

fm clean [--all] [--yes]
Parameter Type Default Description
--all flag false also remove gitignored files (build output)
--yes flag false skip the confirmation

Example

$ fm clean --all