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

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

问题描述

可能的重复:
Intellij Idea9/10,哪些文件夹要签入(或不签入)源代码管理?

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

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).

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

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

附言已经有关于此的问题,但通常只关注是否包含整个 .idea 文件夹或是否完全排除它.我认为 .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.

因此,在您的 .gitignore 中,您可能会忽略以 .iws 结尾的文件,以及 workspace.xml 任务.xml 文件.

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天全站免登陆