I'm trying to do a git pull and get the error message:

error: The following untracked working tree files would be overwritten by merge:
<myFileName>
Please move or remove them before you can merge.

So, I try to remove the file using the command git rm --cache which results in the error:

fatal: pathspec
<myFileName>
did not match any files

At this point I'm stuck. I can't pull until I remove the file. But, it tells me I can't remove the file.

What can I do to fix this?

git
Edit
Report