title: how to apply .gitignore rules to GNU Find?
body: <p>how do i apply .gitignore rules to GNU Find invocations? for example if i have a folder with the 3 files <code>/.gitignore</code> and <code>/a</code> and <code>/b</code> and the <code>.gitignore</code> contains <code>/a</code>, find should only print</p>
  <pre><code>.
  ./.gitignore
  ./b
  </code></pre>
  <p> 
  (Also not entirely sure if this question belongs on <a href="https://stackoverflow.com/">https://stackoverflow.com/</a> or <a href="https://superuser.com/">https://superuser.com/</a> or <a href="https://unix.stackexchange.com/">https://unix.stackexchange.com/</a> )</p>