title: Example of gitignore file for java
body: <p>Can you show me example of <code>.gitignore</code> file for java, that consider a lot of different files that are not included(jar, war, classpath, files that IDEA and other IDE generates and so on and on). I mean really big <code>.gitignore</code>.</p>
  
  <p>What I currently have is </p>
  
  <pre><code>**/target/
  /target/
  */target/*
  .classpath
  .project
  .settings
  
  # Package Files #
  *.jar
  *.war
  *.ear
  
  *.iml
  *.idea
  </code></pre>