Ignore some directories in Git
<p>I have in my git repository this path :</p>

<pre><code>pir-enio/src/main/java/at/ClientSide/com/audit/client
</code></pre>

<p>I want to ignore this part: </p>

<pre><code>src/main/java/at/ClientSide/
</code></pre>

<p>because my package is <code>com.audit.client</code>.</p>

<p>I am wondering now where to put <code>.gitignore</code>  file in order to ignore the above path</p>

<p>If I put it in <code>main</code> than <code>.gitignore</code> is going to ignore all what comes after <code>*src*</code> so it is going to ignore also  <code>/com/audit/client</code> and I do not want to ignore that part. </p>