{"version":"2.1.334","anchor":"git-clean-force-warning-regex-now-only-skips-dry-run-when-fl","canonical_anchor":"git-clean-force-warning-regex-now-only-skips-dry-run-when-fl","heading":"git clean warning is skipped only for a real dry-run flag","tier":"notice","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/git-clean-force-warning-regex-now-only-skips-dry-run-when-fl","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### `git clean` warning is skipped only for a real dry-run flag\n\nThe warning that `git clean` may permanently delete untracked files is now skipped only when `-n` or `--dry-run` is its own argument\n\n**What**\n\nClaude Code warns that a `git clean` force command may permanently delete untracked files. A dry run, which only lists what would be deleted, does not get the warning. Before, `-n` or `--dry-run` appearing anywhere in the command, even inside a file path or another word, was enough to skip the warning. Now the flag has to stand on its own, with a space or tab before it.\n\n**Why**\n\nThe warning can no longer be skipped by accident, or on purpose, just because a path or other argument happens to contain those letters.\n\n- Area: Bash Safety\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}