title: git checkout only certain file types for entire project
body: <p>Is there a way to perform a git checkout for only certain file types (.xlf), which recurses down through the entire repository? The results should contain the struture of the repository, meaning the folders, and the contained files of a certain extension.</p>
  
  <p><strong>Repo A</strong></p>
  
  <pre><code>file.xlf
  file.txt
  level2/
      file2.xlf
      file2.txt
      level3/
          file3.xlf
          file3.txt 
  </code></pre>
  
  <p>After checkout repo B looks like:</p>
  
  <p><strong>Repo B</strong></p>
  
  <pre><code>file.xlf
      /level2
      file2.xlf
          /level3
          file3.xlf
  </code></pre>
  
  <p>This is what I have so far:</p>
  
  <pre><code>$ git checkout FETCH_HEAD -- '*.xlf'
  </code></pre>
  
  <p>This gives all of the <code>".xlf"</code> files at the root level, but is not recursive down to subdirectories.</p>
  
  <p>Thank you for the help.</p>