Question: Add/Commit php file with a special character in the filename

Hey guys!

I am facing a problem since a while and I have no idea how to fix it.
I just set up my git version control within Phpstorm and I can't commit the file called "_listviewProjects" with the following error:
- Error: pathspec <path> did not match any file(s) known to git.

I actually know, that this error usually occures if the file wasn't added to the repository, so I added it manually via the Phpstorm console followed by a git fetch, but this hasn't solved the problem at all.

I guess there has to be an issue with filenames which include special characters (In my case the underscore at the beinning of the filename).

Can you guys help me out somehow?

Thanks in advance!

Please sign in to leave a comment.