I have a project set up in /home/xxx/project. My .gitignore is in /home/xxx/project/.gitignore, and I'm trying to add the file /home/xxx/project/.idea/workspace.xml to gitignore. Here's my .gitignore file:
target/
uploads/
*.class
.idea/workspace.xml
All the other lines work, but the last one has no effect, and I keep seeing changes from workspace.xml when I try to commit.
What am I doing wrong?