How to disable version control in phpstorm?

前端 未结 5 755
时光取名叫无心
时光取名叫无心 2021-02-06 20:30

I am playing around with phpstorm and somehow I activated version control. I don\'t need it. Now all my tabs are different: orange text on gray background. All files in the file

5条回答
  •  我寻月下人不归
    2021-02-06 21:14

    I had this problem and I used from 2 of notes in these answers in these page together.

    As Greg has mentioned in one of replies, your git repository is in .git sub directory inside directory that you want to manage it with version control system. When you define a git repository, PhpStorm automatically generate it and with creating this sub directory, it adds a file for handling mapping between itself and version control system. It calls vcs.xml and it's located in .idea sub directory.

    It's not enough to remove only .git directory. When you remove .git, you will get an error in PhpStorm every time that you open your project due to not matching vcs.xml for mapping between PhpStorm and git repository of your project. So after removing .git directory, you must also remove vcs.xml files from .idea and now you won't have any error or warning in your PhpStorm.

    It doesn't need to restart PhpStorm at all and after this, colors of all of files that was mentioned in questions return to normal colors in PhpStorm.

提交回复
热议问题