什么从.idea文件夹gitignore? [英] What to gitignore from the .idea folder?

查看:193
本文介绍了什么从.idea文件夹gitignore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能存在重复:

Intellij Idea 9/10,检查(或不检查)源代码管理的文件夹是什么?


我开始使用WebStorm进行Web开发,不确定要添加什么以及从我们的网站中排除什么Git存储库。很明显, .idea 文件夹中的一些文件应该像外部库设置一样受版本控制( jsLibraryMappings.xml )但其他人可能会经常更改,并且是特定于开发人员的(例如, workspace.xml )。



什么是推荐的WebStorm / IntelliJ IDEA的.gitignore模式?



PS对此已有疑问,但通常只关注是否包含整个 .idea 文件夹或是否完全排除它。我认为 .idea 文件夹中的一些文件应该受版本控制,而其他文件不应该,我试图找出哪些文件。

解决方案

官方支持页面应该回答你的问题。

gitignore你可能会忽略以 .iws 结尾的文件,以及 workspace.xml 任务.xml 文件。


Possible Duplicate:
Intellij Idea 9/10, what folders to check into (or not check into) source control?

I started using WebStorm for web development and am not sure what to add and what to exclude from our Git repository. Clearly some files inside the .idea folder are meant to be version controlled like the external library settings (jsLibraryMappings.xml) but others will probably change very often and are developer-specific (e.g., workspace.xml).

What is the recommended .gitignore pattern for WebStorm / IntelliJ IDEA?

P.S. There are already questions about this but usually focus only on whether to include the whole .idea folder or whether to fully exclude it. I think some of the files inside the .idea folder should be version controlled while others shouldn't and I'm trying to find out which ones.

解决方案

The official support page should answer your question.

So in your .gitignore you might ignore the files ending with .iws, and the workspace.xml and tasks.xml files.

这篇关于什么从.idea文件夹gitignore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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