Android工作室 - 整个.idea目录应该在git忽略? [英] Android studio - should the entire .idea directory be in git ignore?
问题描述
我发现了很多针对 AndroidStudio 的 是否有理由不将整个.idea目录添加到.gitignore? 如果不应该完全忽略,那么.idea(例如.iml)里面应该有.gitignore中的特定文件吗? 您可以查看此页面: a href =https://www.jetbrains.com/help/idea/2017.1/about-projects.html =noreferrer>关于项目配置文件的IntelliJ文档 在基于目录的格式中,特定的行很有趣: .idea目录包含一组配置文件(.xml)。每个文件仅包含一部分与某个功能区有关的配置数据,这些配置数据反映在文件的名称中,例如 几乎所有的文件都包含项目本身的信息核心,例如组件模块的名称和位置,编译器设置等。因此,这些文件可能(而且应该)保持在版本控制之下。 但是,我正确地HATE使项目IDE依赖(我目前正在使用NetBeans制作的项目,并且使用它成为我公司的标准)。因此,要回答您的问题: I saw a lot of examples for Is there a good reason not to add the entire .idea dir to .gitignore? If it should not be completely ignored, are there specific files inside .idea (such as .iml) that should be in .gitignore? You can take a look at this page : IntelliJ doc about project configuration files In the "Directory-based format", a particular line is interesting : The .idea directory contains a set of configuration files (.xml). Each file contains only a portion of configuration data pertaining to a certain functional area which is reflected in the name of a file, for example, Almost all of the files contain information core to the project itself, such as names and locations of its component modules, compiler settings, etc. Thus, these files may (and should) be kept under version control. However, I properly HATE to make project IDE-dependent (I am currently working on a project made with NetBeans and it hurts to use it with Eclipse which becomes the standard of my company). So, to answer your question :
这篇关于Android工作室 - 整个.idea目录应该在git忽略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! .gitignore
文件的示例,其中一些包含 .idea $ c
compiler.xml
, encodings.xml
, modules.xml
。
.gitignore
files for AndroidStudio, some have .idea
in them, and some don't.
compiler.xml
, encodings.xml
, modules.xml
.