Git Ignore Eclipse .Settings .Project .Classpath

Remove from cache and add into gitignore files.

Annoying issues

 modified: ../my-core/.settings/org.eclipse.wst.common.project.facet.core.xml
 modified: src/main/resources/logback.xml
 modified: src/main/resources/sandbox/persistence.properties

Use follow commads to remove from cache

git rm --cached .project 
git rm --cached .classpath 
git rm --cached -r .settings

Example

git rm --cached -r ../my-core/.settings/

rm 'my-core/.settings/org.eclipse.core.resources.prefs'
rm 'my-core/.settings/org.eclipse.jdt.core.prefs'
rm 'my-core/.settings/org.eclipse.m2e.core.prefs'
rm 'my-core/.settings/org.eclipse.wst.common.component'
rm 'my-core/.settings/org.eclipse.wst.common.project.facet.core.xml'
rm 'my-core/.settings/org.eclipse.wst.validation.prefs'

 

Git ignore files

.project
.classpath
.settings/
Git Ignore Eclipse .Settings .Project .Classpath

One thought on “Git Ignore Eclipse .Settings .Project .Classpath

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.