如何让Git忽略由Rubymine创建的.idea文件 [英] how to make Git ignore .idea files created by Rubymine
本文介绍了如何让Git忽略由Rubymine创建的.idea文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Rubymine for Rails项目。很多时候,Rubymine对我不在乎的 .idea / *
文件进行了更改。但它一直阻止我检出新的分支,并使得我的版本 .idea /
与我的同事不同。
我们已经将 .idea /
添加到 .gitignore
中,但它会跟踪 .idea
。我应该如何正确地做到这一点?
以下是我得到的典型错误消息之一:
<$ p $
.idea / workspace.xml
.idea / workspace.xml
解决方案
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.
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
解决方案
just .idea/
works fine for me
这篇关于如何让Git忽略由Rubymine创建的.idea文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文