Tuesday, November 29, 2011

.gitignore file for Android projects



If you have an Android project and you want to share it you can setup your .gitignore file as follows:



*.class
*.apk
*.ap_
*.dex
*.DS_Store
*.proguard
.metadata/
bin/
gen/
local.properties


Don't add the .classpath entry or others will not be able to correctly setup your project.
If you have a local git repository but you use git-svn as a bridge to commit changes on a SVN remote server, then be careful to manually add empty folders to SVN as Git ignores empty folders.