I have the folder application/ which I add to the .gitignore. Inside the application/ folder is the folder application/language
application/
.gitignore
application/language
This worked for me:
**/.idea/** !**/.idea/copyright/ !.idea/copyright/profiles_settings.xml !.idea/copyright/Copyright.xml