Installing modules in another directory

I would like to manage both my Omeka S installation as well as my modules to be managed by git, this will allow me good control of the updates, as well as great management of local modifications and configuration.

But the modules go into a subdirectory of the Omeka S installation.

Is there a way to install them in a distinct directory and set up Omeka S to look somewhere else?

Or do i need to use git submodules?

You should be able to git clone modules into the modules directory. I manage my Omeka S and Omeka Classic installations that way - changing the branch of Omeka S should not impact the branch or status of modules or themes you’ve cloned.