I have been using git from past few months and I like git. I was wondering if there is a command which can show list of ignored files in a project.
I tried this git status --ignored
from root directory of the project but it doesn't seem to be sufficient.
You can use the clean
command with the option:
-n, --dry-run - Don't actually remove anything, just show what would be done
git clean -ndX
In this way git will list all the files that would be cleaned without doing anything, and you get a list of ignored files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With