In the same dir where you see the file appear do:
rm .idea/workspace.xmlgit rm -f .idea/workspace.xml (as suggested by chris vdp)vi .gitignore- i (to edit), add
i (to edit), add ".idea/workspace.xml" in one of the lines, esc, xmlin one of the lines, Esc,:wq
You should be good now