Not getting "Project configuration files can be added to Git" prompt

I'm reading here: https://www.jetbrains.com/help/idea/enabling-version-control.html#associate_directory_with_VCS

However I'm not getting the prompt mentioned:

I think I may have cancelled it previously, but now I want to add the project files to git because sometimes the project path .idea folder isn't found by PHPStorm randomly (it's on a mapped network drive to a WSL2 path), which obliterates my configurations. When that happens, I can close PHPStorm, delete the .idea folder in the project folder, then copy over a copy to restore them, but that requires me copying over the .idea folder whenever I make a settings change in the editor... which I may forget to do, and can happen quite often.

How do I get this prompt back? I remember it showed a list of files it auto-selected for commit (or ignore), and I'm not sure I'm reading the instructions right on what to commit/ignore anyway.

0
3 comments

There is no UI way, unfortunately, you have to remove the ASKED_ADD_EXTERNAL_FILES property from .idea/workspace.xml manually: https://youtrack.jetbrains.com/issue/IDEA-240798

0

I have to remove the property tag?

<component name="PropertiesComponent">
    <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />

Or is setting its value to false or empty, or changing something else in the tag adequate?

0

By default, the node is not there, so removing it should do the trick.

0

Please sign in to leave a comment.