title: How to avoid to add the target folder into a GIT commit?
body: <p>I am not so into GIT and I have a doubt.</p>
  
  <p>I have a project that is composed by these folders and file:</p>
  
  <pre><code>$ ls
  bin/  lock.lck  pom.xml  src/  target/
  </code></pre>
  
  <p>I know that doing:</p>
  
  <pre><code>git add .
  </code></pre>
  
  <p>I am adding all the files in my staging area, so if then I commit and push on my remote repository I will put on this repository also the <strong>target</strong> folder.</p>
  
  <p>I want to avoid this situation.</p>
  
  <p>How can I avoid to add, commit and push the <strong>terget</strong> folder?</p>