title: Remove .iml Files From GIT for Good
body: <p>I am having issues with the .iml files generated by Android Studio. On a Gradle sync, they are regenerated meaning I then have to do a commit even if nothing has changed. I just want to make these files untracked.</p>
  
  <p>I have tried the following things.</p>
  
  <ul>
  <li>Added <code>*.iml</code> to my project's <code>.gitignore</code> file as well as each module's <code>.gitignore</code>. I have tried both <code>*.iml</code> and <code>**/*.iml</code></li>
  <li>Used <code>git rm --cached app/app.iml</code> when they appear in the staged files list. Even after doing this and committing it, they appear as staged again later on.</li>
  <li>As suggested <a href="https://stackoverflow.com/questions/2903859/prevent-intellij-from-adding-iml-files">here</a> I added it to the Ignored Files in Settings under version control</li>
  </ul>