Is there a way to validate a .gitignore file so you quickly find doubles paths or paths that don\'t exist anymore? Normally when a project is small this isn\'t really necess
In order to also validate git's ** pattern in paths I had to write a one-liner inspired by the script above:
find . -type f | git check-ignore -v --stdin | perl -pe 's,.*\.gitignore:,,; s,\t," "x100,e' | sort | uniq -w 100 -c | perl -pe 's, {100}.*,,'
Not exactly pretty but it works.