title: Git ignore all except subfolder
body: <p>I searched through other questions but can't find a working solution for my project.
  Having a Magento project, I want to exclude everything except this:</p>
  
  <pre><code>/app/design/frontend/default/theme_name # and obviously all subfolders
  /skin/frontend/default/theme_name # and all subfolders
  </code></pre>
  
  <p>I've tried a lot of combinations but without luck. Currently I'm stuck with this .gitignore file:</p>
  
  <pre><code>*
  !/app/
  !/app/*
  
  app/*
  !/app/design/
  !/app/design/*
  </code></pre>
  
  <p>But it doesn't work recursively below the design folder. It only added a test file inside the design folder that I created.</p>