title: How to ignore IDE settings on Git?
body: <p>I have below Git information and I would like to ignore settings of my IDE (Eclipse).</p>
  
  <pre><code>modified:   myproject/.classpath
  modified:   myproject/.project
  modified:   myproject/.settings/com.google.gdt.eclipse.core.prefs
  modified:   myproject/.settings/org.eclipse.core.resources.prefs
  modified:   myproject/.settings/org.eclipse.jdt.core.prefs
  modified:   myproject/.settings/org.eclipse.wst.common.component
  modified:   myproject/.settings/org.eclipse.wst.common.project.facet.core.xml
  modified:   myproject/.settings/org.eclipse.wst.validation.prefs
  </code></pre>
  
  <p>I tried the below statements in my <code>.gitignore</code> file, but it doesn't work for these settings:</p>
  
  <pre><code>.project
  .classpath
  .settings
  *.project
  *.classpath
  *.settings
  /.project
  /.classpath
  /.settings
  .project/
  .classpath/
  .settings/
  *.project/
  *.classpath/
  *.settings/
  </code></pre>
  
  <p>I am using Mac OS X and I also added global gitignore file with these settings <code>git config --global core.excludesfile '~/.gitignore'</code>, but I'm still getting the above Git update messages when I check with <code>git status</code>. What am I wrong?</p>