Search code examples
gitphpstormgit-untrackedphpstorm-2018.1

PhpStorm incorrectly showing files as unversioned in Git


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?


Solution

  • 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.