Android studio - should the entire .idea directory be in git ignore? -



Android studio - should the entire .idea directory be in git ignore? -

i saw lot of examples .gitignore files androidstudio, have .idea in them, , don't.

is there reason not add together entire .idea dir .gitignore?

if should not ignored, there specific files within .idea (such .iml) should in .gitignore?

you can take @ page :

link intellij doc project configuration files

a particular line interesting :

the .idea directory contains set of configuration files (.xml). each file contains portion of configuration info pertaining functional area reflected in name of file, example, compiler.xml, encodings.xml, modules.xml.

almost of files contain info core project itself, such names , locations of component modules, compiler settings, etc. thus, these files may (and should) kept under version control.

however, hate create project ide-dependant (i working on project made netbeans , hurts utilize eclipse becomes standard of company).

so, reply question :

if not use maven or gradle manage dependencies , build : keep directory under version control. way, right configuration of project , dependencies available everyone. in counterpart, developpers have set environment same way define in config files. if do use maven or gradle : correctly configure these tools , do not maintain directory under version control. actually, informations contained within config files should be stored in maven/gradle files. allow developers configure ide depending of environment. way, using eclipse, intellij, linux, windows ... not problem anymore.

android git android-studio gitignore

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -