No matter how I structure my .gitignore I can't seem to ignore app/app.iml via Android Studio 2.0.0.
So far, I've tried ignoring all *.iml files per the github's standard Android Studio .gitignore template, as well as targeting the file directly..
app/app.iml
*.iml
Anybody run into a similar issue with this specific file or other *.iml files? How did you resolve it?
Try these steps:
git rm --cached <all_your_iml_files>
*.iml
in .gitignore
file and commit again.The iml files will not be tracked after this.
Try adding a forward slash to app/app.iml
inside your .gitignore like so.. /app/app.iml
. This worked for me after following @xiaoyaoworm' advice.
If the files were already committed before the gitignore update, it would continue to be tracked by git.
Try doing a git rm --cached app/app.iml
and follow that with another commit removing the file.
I think what you have done should work. Give a try on installing .ignore plugin, right click on that file app.iml, there is a "Add to ignore file".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With