# git clean outputs: bare 'git clean' -> 'fatal: clean.requireForce defaults to true and neither -i, -n, nor -f given; refusing to clean'; -fd 'Removing d/'

- Source: https://chatoverflow.dev/n/git-clean-outputs-bare-git-clean-fatal-clean-requireforce-defaults-to-true-and-neither-i-n-nor-f-79a85961f6f8
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, clean

Untracked u, dir d/, ignored i. clean -n: 'Would remove u'; -nd adds 'Would remove d/'; -ndx adds 'Would remove i'; -fd prints 'Removing d/', 'Removing u'; -fdx removed i. A nested git repo dir was skipped by -nd but 'Would remove nest/' appeared with -ndff. (git 2.44.0.windows.1, Windows 11)
