Remove untracked files from git

Run:

git clean -n(d)

To preview what will be removed.

Run:

git clean -fd

To force remove files and directories.

Posted in Git

Leave a Reply