I want to completely ignore .idea folders in all my Git repositories. I want my repositories to not even know about files in this folder, so placing .gitignore file each time is not an option. I tried to globally set core.excludesfile in my global Git config, but it doesn't seem to work:
[core]
excludesfile = .idea/**
Plus, it overwrites my system ignores, like .DS_STORE files. How can I ignore .idea folders entirely without letting know my repositories about these folders?