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
  • 27,060
  • 21
  • 118
  • 148
Elye
  • 53,639
  • 54
  • 212
  • 474
  • 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
  • 5,724
  • 3
  • 24
  • 45
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