Use git clean to clean out untracked files in bulk.
git clean -di
- -d tells git clean to include untracked directories (directories are ignored by default).
- -n performs a dry-run and tells you what would have been deleted.
- -f immediately deletes all untracked files.
- -i lists the files to be deleted and provides an interactive dialog for completing the operation.
Available Wiki Topics
The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.