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.
| Parameter | Type | Default | Description |
|---|---|---|---|
--all |
flag | false |
also remove gitignored files (build output) |
--yes |
flag | false |
skip the confirmation |