[solved] .idea directory and Git

The .idea directory appears to be something added to my project by RubyMine. What is the best practice in relation with Git? Is there any purpose in backing up this directory or is it best to simply add the /.idea/ directory to .gitignore?

0
Avatar
Permanently deleted user

Hi Dave.

I tend to remove add the .idea folder to my .gitignore, the rationale being that another developer might not be using RM as their IDE.

0

Hello Dave,

In the case of RubyMine, there's little benefit in storing the .idea directory
in the version control; RubyMine configures most of the project settings
automatically anyway.

The .idea directory appears to be something added to my project by
RubyMine. What is the best practice in relation with Git? Is there any
purpose in backing up this directory or is it best to simply add the
/.idea/ directory to .gitignore?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

Excellent! Thank you both for your replies. I suspected as much but wanted to verify. I've added it to my .gitignore file.

0
Avatar
Permanently deleted user

Hi Dmitry,

Thanks for this info!  We were having problems with the project_name.iml file giving us conflicts in the ruby environments.  Your company may want to update the following source which currently states that it's a good idea to put most of the .idea folder files into version control:
http://devnet.jetbrains.net/docs/DOC-1192

It's also quoted here on StackOverflow:
http://stackoverflow.com/questions/2673773/which-rubymine-generated-files-should-i-commit

Thanks!

0

请先登录再写评论。