Rubymine:如何使Git忽略Rubymine创建的.idea文件 [英] Rubymine: How to make Git ignore .idea files created by Rubymine

查看:88
本文介绍了Rubymine:如何使Git忽略Rubymine创建的.idea文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Rubymine for Rails项目. Rubymine通常会在我不在乎的.idea/*文件中进行更改.但这会阻止我签出新分支,并使.idea/的版本与我的同事不同.

I use Rubymine for Rails projects. Very often, Rubymine makes changes in .idea/* files that I don't care about. But it keeps preventing me from checking out new branches, and makes my version of .idea/ different from my coworkers.

我们已经在.gitignore中添加了.idea/,但是它一直跟踪.idea中的更改.我应该如何正确地做到这一点?

We already added .idea/ to .gitignore, but it keeps tracking changes in .idea. How should I do this the right way?

以下是我收到的典型错误消息之一:

Below is one of typical error messages I got:

error: Your local changes to the following files would be overwritten by checkout:
    .idea/workspace.xml

推荐答案

恰好.idea/对我来说很好

这篇关于Rubymine:如何使Git忽略Rubymine创建的.idea文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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