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'

有帮助吗?

解决方案

You can do

[0-9][0-9][0-9][0-9][0-9].png
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top