Remove ignored and untracked files and directories.
Section: Clean and Temporary File Management
Delete ignored files too
bash
bash
git clean -fdxExplanation
Very destructive in projects with ignored local configs or build outputs. Use carefully.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Clean and Temporary File Management