Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignoring .blendX files in gitignore

Tags:

gitignore

I'm making a game for a Gr. 12 programming course with my friends. I have 3D models I made in Blender on my local repository. Blender files end in .blend, and it also likes to make backups with extensions such as something.blend1, something.blend2, and so on, and I don't like deleting them every time I work on them. I'd like to ignore those in my .gitignore, how would I do that?

I tried having *.blend* in my .gitignore, but that ignored everything that ended in .blend. I also tried .blend*, but that ignored nothing.

like image 464
Alex Avatar asked Jan 14 '23 19:01

Alex


1 Answers

Try this instead: *.blend?

The * matches zero or more characters, but the ? matches a single character.

like image 164
khagler Avatar answered Jan 31 '23 05:01

khagler