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