简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM