RubyMine 5.4 can't gitignore workspace.xml

I have added .idea/* to my gitignore file and I also added all the following to version control/ignored files:
File: .idea/workspace.xml
Mask: workspace.xml
Directory: .idea/

And still when I click on commit changes the workspace.xml file is one of them that RubyMine wants to save to git.



Attachment(s):
RM ignored.png
RM gitnore.png
RM commit.png
1 comment

Hi David,

It looks that you might have added .idea/workspace.xml to the VCS before marking it as ignored. Note that in this case writing its path to .gitignore won't have any effect. You have to remove the file from the VCS first:
git rm --cached .idea/workspace.xml ; git commit

0

Please sign in to leave a comment.