Instead of making this Intellij-specific we can just exclude all dotfiles, which includes whatever most editors create (obviously excepting `.gitignore` itself):
```
.*
!.gitignore
```