How do I remove these files from the Default Chang...
# android-studio
s
How do I remove these files from the Default Changelist? I added them to gitignore but they still appear here
j
refresh files with cmd alt Y (macOS), control alt Y (windows)
if they are still there, then you have not added them correctly to .gitignore
s
Refreshing or restarting android studio doesn't work. I think I've added the files to .gitignore correctly. Adding them to .idea's .gitignore doesn't work either. This only happens with some files
j
you have two gitignore files
Nothing is grey, so maybe you are adding those lines inside the gitignore in .idea instead of the root one?
s
I'm adding them to the root .gitignore
Definitely looks like a bug to me
j
yeah, maybe invalidate and restart?
s
Didn't work
j
maybe deleting de .idea folder
s
I'll try deleting the whole project and importing it again
u
Did you commit .gitignore?
s
Yes
Deleting and importing the project worked
But not sure if it will work for new files
a
Push your updated gitignore file into default branch and rebase with the default branch.
135 Views