I am trying to ignore the main .idea directory and exclude specific files from it I want to commit to VCS. I've found out that ! in front of the ignore 'un-ignores' the file. This doesn't work in my case. Any idea what I should do?
I've tried
.idea/*
!.idea/scopes
!.idea/inspectionProfiles/JSInspection.xml
!.idea/TRIP.iml
!.idea/modules.xml
and
/.idea/*
!/.idea/scopes
!/.idea/inspectionProfiles/JSInspection.xml
!/.idea/TRIP.iml
!/.idea/modules.xml