Android Studio does not ignore .gitignore files

I added some masks and files in gitignore Settings> Version control> Ignored files :

enter image description here

However, when I try to send a new commit, these files are not ignored:

enter image description here

And I'm not sure why ... I remember how I used (in the same way) Ignored Files before and it worked correctly. Can anyone whats going on here?

+4
source share
1 answer

First of all, Settings | Version control | Ignored files are not .gitignore, this is IntelliJ IDEA's own ignore mechanism that works for any version control system.

This mechanism only works to ignore unversioned files. If you have already added your .iml file to the version control, it will not ignore subsequent changes to this file.

+1
source

All Articles