Install the Subversion plugin
This functionality relies on the Subversion plugin, which you need to install and enable.
Press Ctrl+Alt+S to open the IDE settings and select.
Open the Marketplace tab, find the Subversion plugin, and click Install (restart the IDE if prompted).
DataGrip supports the Subversion sharing directories feature. The Share Directory command is applied to the content roots. When such content root is shared, a new directory is created in the specified location of the Subversion repository, checked out to the local directory you want to share, and the contents of the local directory is added to the repository. As a result, the local directory contains a valid working copy of the repository.
To share a directory via the Subversion repository, do the following:
In the Files tool window, select an unversioned directory that is the content root of a module associated with Subversion.
From the main menu, select VCS | Subversion | Share Directory.
Specify the target repository location where the directory shall be shared.