Question

I have a directory of images where I only want to .gitignore a specific subset of those images that match the pattern

\d{5}.png

Namely, 01001.png or 93002.png, for example.

For some reason, I'm not able to find the gitignore pattern for this or the bash glob that doesnt say 'too many arguments'

Était-ce utile?

La solution

You can do

[0-9][0-9][0-9][0-9][0-9].png
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top