git clean

say it: “GIT KLEEN” /ɡɪt ˈklin/

Removes selected untracked files or folders from the working tree.

What does git clean do?

git clean — Removes selected untracked files or folders from the working tree.

git clean --dry-run

Level: Journeyman · More Git terms at this level

Updated