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).