I have the following configuration in my .gitignore
file.
.idea/*
!.idea/inspectionProfiles/Teamcity.xml
!.idea/scopes/teamcity.xml
!.idea/runConfigurations/Watch_Sass_files.xml
It should be ignoring all the files in the .idea directory with 3 exceptions. It doesn't allow me to git add
them. I have run git check-ignore
on them and that's the message
.gitignore:59:/.idea/* .idea/runConfigurations/Watch_Sass_files.xml
I have even implemented @Matiss suggestion in https://stackoverflow.com/a/14731573/9559251
It seems that you can make a directory exception but not file exceptions e.g.
!.idea/runConfigurations/