Artifact in git commit window (Resolved)
Answered

Sometime ago I used a link to non-existent file in my mockery tests. And somehow PhpStorm has recognized it as a real new file which can be committed. I cannot delete it, I cannot shelf it or whatsoever. It is just a ghost. I though I could invalidate cache, but it did not help.

Normally, it is just there and has no impact on commit process (I cannot commit it even if I choose it), but as I open commit window to check new files, this artifact confuses me every time.
Is there a way to get rid of it without reinstalling phpstorm?
Please sign in to leave a comment.
yeah, it appears only in 1 project. So I think reinstalling the IDE won't help
Hi,
Please check Settings | Version Control | Directory Mappings, is this path somehow mapped there?
there is only one path
When you run
git statusfrom the command line (e.g. git bash), outside of the IDE, do you see the file in the output? Is it possible to right-click on the file and do Rollback?You can try the following:
.ideafolder and any*.imlfiles in your project root folder in file explorer, and re-import the project from existing sourcesOk, thank you guys for the support. The case was resolved by chance. As I stated: there were no such file/folder as invalid/path/to/channel_feed.to in Project in PHPstorm. I just accidentally opened project in Files and saw this “folder”. Deleted it in Files and voilà it is disappeared. This ghost folder was not in root folder, that is why I did not see it earlier, as I searched for it.
The case is closed.