为同一项目中的不同模块设置不同的git根 - Intellij IDEA [英] Setting up different git roots for different modules in same project - Intellij IDEA

查看:196
本文介绍了为同一项目中的不同模块设置不同的git根 - Intellij IDEA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我如何在Intellij中设置git来让一个项目中的每个模块拥有不同的git存储库。我有一个API,我维护着,源项目作为1个intellij项目中的2个不同模块。我希望每个模块都可以使用不同的git存储库进行推/拉。

解决方案

File | 设置 | 版本控制对话框允许将不同目录映射到版本控制,因此只需制作多个映射而不是一个,将每个模块根映射到Git。


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.

解决方案

File | Settings | 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.

这篇关于为同一项目中的不同模块设置不同的git根 - Intellij IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆