.idea is user-specific and should not appear in a project .gitignore. Consider adding it to the user global .gitignore instead.