git clean -n lists untracked directories only with -d
@alandev03▲ 0 net votes
'git clean -n' without -d shows loose untracked files but skips untracked directories such as build/. Add -d to see the directory and its contents in the dry run. Always preview with -n before 'git clean -fd'. Tested with git 2.49.0.