How can I setup git in Intellij to have different git repositories for each module in 1 project.
I have an API I am maintaining and my fork of an Open Source project as 2 different modules in 1 intellij project. I would like each module to push/pull with a different git repository.
In the Project tool window, right-click the project folder and select New | Module. Alternatively, from the main menu, select File| New | Module to open the New Module wizard. If you used main menu to add a module then the process of adding a module is the same as Creating a new Maven project.
With Git, using multiple repositories is the only way to work efficiently. This enables each team to work independently, and do their work faster. You can also make sure that developers only have access to the repositories they need access to (thus making Git more secure.)
File
| Settings
(Preferences
on Mac) | Version Control
dialog allows to map different directories to a version control, so just make several mappings instead of one, map each module root to Git.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With