title: Ignore all files with the same name in git
body: <p>Is there a way to have a <code>git ignore file</code> to ignore all files with the name test in them?</p>
  
  <p>I have files like this:</p>
  
  <pre><code> - css/test.css 
   - js/subfolder/test.js 
   - lib/main/sub/test.html
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I want <code>git</code> to avoid adding or committing any files with the name test.</p>