Updated 7/2015:
Here is the definitive source from JetBrains
This format is used by all the recent IDE versions by default. Here is what you need to share:
.idea
directory in the project root except the workspace.xml
and tasks.xml
files which store user specific settings.iml
module files that can be located in different module directories (applies to IntelliJ IDEA)Be careful about sharing the following:
dataSources.ids
, datasources.xml
can contain database passwords. IDEA 14 solves this problem.You may consider not to share the following:
.idea/libraries
in case they are generated from Gradle projectLegacy project format (.ipr
/.iml
/.iws
files)
.ipr
file and all the .iml
module files, don't share the .iws
file as it stores user specific settingsWhile these instructions are for IntelliJ IDEA, they hold true 100% for Android Studio.
Here is a .gitignore
snippet that incorporates all of the above rules:
# Android Studio / IntelliJ IDEA
*.iws
.idea/libraries
.idea/tasks.xml
.idea/vcs.xml
.idea/workspace.xml