Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitignoring md5 files

Tags:

git

gitignore

md5

In one of my Git projects, I have files in md5 format that I want to ignore.

I tried to add the following entry to my .gitignore,

[0-9a-f]{32} 

but apparently .gitignore files do not support regexp. Is there an equivalent way to achieve that?

like image 797
Jean Carlo Machado Avatar asked Apr 18 '26 22:04

Jean Carlo Machado


1 Answers

[0-9a-f]{32} does not work,

but

[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]

does (although it is very ugly).

like image 200
Jean Waghetti Avatar answered Apr 20 '26 15:04

Jean Waghetti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!