Can I gitignore files with a prefix?

santiago arizti picture santiago arizti · Aug 17, 2015 · Viewed 7k times · Source

I have file a.css and b.css in the same folder. My framework combines those files in a file called temp.a12cab4598347b07f0079d.css This file will be generated wherever there is a css file, so folder matching is no good. Can I ignore all these files using something like

temp.*.css

Thank you

Answer

Gabriele Petronella picture Gabriele Petronella · Aug 17, 2015

It will work as expected.

Also, if you need to do this recursively in any subdirectory

**/temp.*.css