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