Git

git clean

DestructiveClean untracked

git clean -nd

Removes untracked files; -n previews, -fd actually deletes.

Examples

  • git clean -ndPreview what would be removed

Syntax

git clean -n | -fd

Before you run it

-fd permanently deletes untracked files; preview with -n.

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store