Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up different git roots for different modules in same project - Intellij IDEA

Tags:

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.

like image 579
forTruce Avatar asked Mar 31 '13 01:03

forTruce


People also ask

How do I run a multi module Maven project in IntelliJ?

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.

Can I have multiple Git repositories?

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.)


1 Answers

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.

like image 179
CrazyCoder Avatar answered Sep 30 '22 05:09

CrazyCoder