title: Recursively add files by pattern
body: <p>How do I recursively add files by a pattern (or glob) located in different directories?</p>
  
  <p>For example, I'd like to add <code>A/B/C/foo.java</code> and <code>D/E/F/bar.java</code> (and several other java files) with one command:</p>
  
  <pre><code>git add '*.java'
  </code></pre>
  
  <p>Unfortunately, that doesn't work as expected.</p>