Git ignore tracked files
Git never ignores changes to tracked files. As it appears as modified, the file is under version control and thus changes to it are tracked. Delete it from the index
git rm --cached .idea/workspace.xml
Commit this change.