We used to have a repository on SVN that hosted all our apps. I used git svn
to communicate with that repository. In my root directory, I have individual modules, corresponding to individual apps, and a .git
folder with a config
file that contains this:
[svn-remote "svn"]
url = <the repo's url>
fetch = :refs/remotes/git-svn
Now, we have, thankfully, transitioned to Git. The problematic part is that every app is now a separate Git repository. It means I can’t just add a new remote and fetch from there. Instead, I should either (re)create each app as a new project or somehow add matching Git repositories to each of the modules in my IntelliJ project
I read these three SO questions (1, 2, 3), but they don’t appear to answer my question
It’s true, I can map individual directories to VCSes in Settings -> Version Control -> Directory Mappings. However, I can’t map individual directories (or better still, modules) to particular Git repositories. If I then add a Git remote, it seems to be added to the project as a whole rather than a particular module
Can you link each module in an IntelliJ project to its own remote Git repository? If necessary, I can remove the SVN remote, it’s no longer updated anyway