I am using Git in Android Studio on a OS X machine, and I would like to have a personal .gitignore
file that overrides the .gitignore
that are in the project (I want mine to ignore .iml
files). Can this be done and how?
I have tried to create a .gitignore
file in my home dir with the following lines in:
# Android Studio
.*.iml
*.iml
And the I have used this command to make git use my file git config --global core.excludesfile ~/.gitignore
, but it does not work.
Any ideas?