I have excluded .idea/ folder in perferences, but when I try to commit changes, phpstorm tries to commit workspace.xml file. Why?

I have excluded .idea/ folder in perferences, but when I try to commit changes, phpstorm tries to commit workspace.xml file. Why?

For what I see, .idea/workspace.xml seems to be deleted, so it means it was previously tracked by git.
EDIT: You have accidentally committed this file, so you want to remove it from the repo but not from your working copy.
For this you have to use the --cached flag of git rm:
$ git rm --cached .idea/workspace.xml
From git help rm:
   --cached
       Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone.
You'll have to commit the deletion if you want the file to not be included in the repository code anymore.
Instead, if you want to leave the file there but stop tracking further changes to that file, you should use git's assume-unchanged option.
From the command line, that's like:
$ git update-index --assume-unchanged .idea/workspace.xml
I don't really know how to do that with the GUI you're using.
The answer was: simply add .idea/ to .gitignore file in the root of my application.