10

Whenever a new Android Studio project is created (I'm using Android Studio 3.4), the .gitignore content is as below.

*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild

Why isn't entire /.idea to be ignore but only the selective few? Are the remaining of any special use?

Zoe stands with Ukraine
  • 25,310
  • 18
  • 114
  • 149
Elye
  • 41,569
  • 37
  • 154
  • 357
  • There may be important metafata files inside the `.idea` directory. These files may be needed when importing the project. – dan1st May 29 '19 at 05:11

2 Answers2

1

There are some that you generally want to check into version control (anything project-specific but not user-specific). See What to gitignore from the .idea folder? for more information. If you don't want to version control them, you can exclude the whole directory.

Solomon Ucko
  • 3,994
  • 2
  • 20
  • 39
0

Excluding all .idea-data would also exclude gradle.xml

I guess this is important for building. But I am just guessing.

micha_nerd
  • 45
  • 8