I am trying to tell git to ignore files which have _autosave
somewhere in the filename. An example of such a file is:
hats/TFCB_ATV_TOP_HAT/_autosave-TFCB_ATV_HAT.kicad_pcb
In a regular expression, I would simply use the pattern ^.*_autosave.*
Of course, git doesn't use regular expressions to evaluate its .gitignore file. I did some reading and had the impression that *_autosave*
would work, but it doesn't.
What is the correct syntax to tell git to ignore these files?