cpjolicoeur
cpjolicoeur

Reputation: 13106

Git ignore files matching a pattern only

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'

Upvotes: 1

Views: 122

Answers (1)

Greg
Greg

Reputation: 1660

You can do

[0-9][0-9][0-9][0-9][0-9].png

Upvotes: 1

Related Questions