Ignore .classpath and .project on GitHub

4

I'm not able to ignore the .classpath and .project files in GitHub. These are already in my .gitignore but after a while they always end up coming back. I'm using Eclipse + EGit.

Follow my .gitignore file

/bin
/null
/.settings

*.db
*.class
*.jar
*.war
*.ear
.classpath
/.settings/org.eclipse.jdt.core.prefs
.project
/null/Documentos/indice-lucene/write.lock
/config.properties
    
asked by anonymous 04.04.2014 / 14:43

1 answer

1

Assuming you have accidentally committed the .classpath and .project files, they will continue to be crawled regardless of the .gitignore file. If this is the case, do the following:

git rm --cached .project
git rm --cached .classpath

Correct your .gitignore file, run commit , and update your project. The .classpath and .project files should stop being crawled.

Source: link

    
04.04.2014 / 16:15