I committed files from .idea
folder, then I created .gitignore
file, and I wanted to stop tracking those files from .idea
folder.
To do this, I wrote:
git rm -r --cached .
git add .
and committed changes. Everything was fine until Android Studio changed file misc.xml
, by changing java language level, and I do not know why, but if I try to commit changes, I can still commit this file misc.xml
, which is ignored and should not be tracking anymore. What can I do?