문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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/
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top