globby
globby copied to clipboard
Removing ignored files
I have a .gitignore with the following contents:
**/*
!README.md
!.gitignore
which basically ignores all files in the directory except the two negated files. Now I want clean the directory of all the ignored files. How can I get globby to return the list of files that should be removed based on the .gitignore.