should .idea folder be tracked in version control

Hi,

I use git for version control. On importing an existing project I modified .gitignore to
exclude the .idea folder.

Then a thought occurred to me. Will this mess up the RubyMine system if I am
continuously swapping in and out of different branches.

Should the .idea folder be included in your VCS or not?

Joc

4 comments
Comment actions Permalink

Hello Joc O'Connor,

For RubyMine, it's usually better not to store the .idea folder in version
control. Its contents are not related to the branch you're using.

I use git for version control. On importing an existing project I
modified .gitignore to exclude the .idea folder.

Then a thought occurred to me. Will this mess up the RubyMine system
if I am continuously swapping in and out of different branches.

Should the .idea folder be included in your VCS or not?


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


0
Comment actions Permalink

Hello Joc,

I use git for version control. On importing an existing project I modified .gitignore to
exclude the .idea folder.


Then a thought occurred to me. Will this mess up the RubyMine system if I am
continuously swapping in and out of different branches.


Should the .idea folder be included in your VCS or not?

.idea folder is used to store RubyMine project settings, so if you don't want to share your settings with the whole team you have no need to add it to VCS.

Regards,
Oleg

0
Comment actions Permalink

Hi Oleg,

thanks for the quick reply.

I was more concerned whether the .idea folder would cause RubyMine to
become confused about the state of the source tree if I switched branches
and the source and local database were substantially different.

Joc

0
Comment actions Permalink

Thanks Dmitry,

when you move to a new development environment it can be difficult
to ascertain what the best settings are.

Joc

0

Please sign in to leave a comment.