Search code examples
gitsvnphpstormgitignore

How to fully remove svn.iml file that generate PhpStorm from .idea folder


In my projects I'm using BitBucket base on Git control version. My IDE is PhpStorm 2017.

My problem is when I remove myprojectsvn.iml file from .idea folder after some time I can see that file again.

Why is file always create If I've never used svn? For that file when I switch branch I got error like this:

Can not loading myprojectsvn.iml module


Solution

  • You should remove it from the remote repository firstly. Then, you should add a .gitignore file to your project and add .idea and .iml files into it. By this way, you are saying git not to push that files into your remote repository. You can also add some other folders into .gitignore file out etc. Check the following link it will help you I guess.

    help.github.com/articles/ignoring-files