Arguments for NOT adding the entire “.idea” folder to .gitignore/.hgignore
Answered
I know, I could google it but I have not found anything concise and of a corresponding quality on that topic. Personally I only add .idea/workspace.xml to my .gitignore. But there are so many reasons adding the entire .idea folder to the SCM instead ignoring it. Maybe you create yourself a site and added “adding .idea to .gitignore” as an anti-pattern?
Apparently this pattern comes from the dark Eclipse times as adding project meta-data was a clear anti-pattern as Eclipse was using absolute paths all over (maybe still does).
Please sign in to leave a comment.
Please see https://intellij-support.jetbrains.com/hc/articles/206544839.
I’ve compiled a list myself…
The disadvantages of not using IntelliJ project meta-data inside your SCM (Git/Mercurial/Subversion):
Those are the real world problems people might face when not committing user-independent project meta-data to a project’s SCM.