PhpStorm incorrectly showing files as unversioned in Git

814 Views Asked by At

In a project I have that is under Git PhpStorm is showing a bunch of files that it states are "unversioned", however Git disagrees.

Running:

git ls-files . --exclude-standard --others

...from the Terminal shows nothing.

PhpStorm version 2018.1.6

Did PhpStorm get confused somehow or what is the problem here?

1

There are 1 best solutions below

3
Brett On BEST ANSWER

Ok, it seems I had previously set this project to using the SubVersion VCS.

I fixed this by:

  • Pressing ctrl + alt + s (Windows) to bring up Settings
  • Navigating to Version Control
  • On the right I saw my project and changed the and changed the selection under the VCS header to "Git"

After I had done this it started working correctly.