Pergunta

I have used Eclipse and SVN for a while. However, I'm still not clear which files/folders usually should be ignored while commit the whole project to repository. I know .project needs to be ignored. What about others? By the way this is an android project. However, answers to general project are also welcome.

Thanks.

Foi útil?

Solução

We are using configuration as below to support different IDE:

# Eclipse related (and M2e)
.classpath
.project
.settings/
.metadata/
test-output/

# Maven related (and some plugins)
target/
*~
dist
*.ser
*.ec

# Intellij
*.ipr
*.iml
*.iws
.idea
.temp

# Other
.svn/
bin/
bak/
*.log
*.orig
*.versionsBackup

Outras dicas

Basically following list of files added in .gitignore file for android projects.

# Built application files
*.apk
*.ap_

# Files for the Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top