Git Clean
git clean deletes untracked files: files in your working directory that Git does not track. Deleted files do not go to the trash.
Always look first with -n (dry run). Use -f to delete, and add -d to delete untracked folders too.
See what would be deleted
git status --short
?? build/
?? notes.txt
git clean -n
Would remove notes.txt
git clean -n -d
Would remove build/
Would remove notes.txt
Delete untracked files and folders
git clean -fd
Removing build/
Removing notes.txt