是否必须保存在版本控制* .iml文件? [英] Is it mandatory to save *.iml files in Version control?

查看:323
本文介绍了是否必须保存在版本控制* .iml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经切换到Android Studio和救了我的Git的项目源代码树。每当我添加或从我的模块中取出任何库,其.iml文件也会改变。这其实并不重要,如果我犯了* .iml,因为他们得到的自动生成在其他Android的工作室。然而,这里 它说你应该存储* .iml。我的问题是,我们真的需要分享我们的* .iml与他人?如果是,为什么?

I have now switched to Android Studio and saving my projects in Git with Source Tree. Whenever I add or remove any library from my module, its .iml file also changes. It really doesn't matter if I commit the *.iml because they get auto-generated in others Android Studio. However, here it says you should store *.iml . My question is, do we really need to share our *.iml with others? If yes, why?

推荐答案

一般最好的做法是:

  • 请项目为IDE无关越好,
  • 请不要提交生成的文件。

因此​​,答案是:这是更好地使忽略CVS这样的文件

So the answer is: it's better to make such files ignored for CVS.

这篇关于是否必须保存在版本控制* .iml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆