我不确定如何为 IDEA 项目中的每个不同模块选择不同的 git 存储库,我没有看到任何选项,所有 git 选项似乎只与一个 git 存储库相关。
有没有办法区分它们?,所以:
(全部在同一个项目内)
Module A -> repo A
Module B -> repo B
?.
Go to 设置/版本控制,您可以在其中为每个目录配置不同的 VCS 根目录。因此,在您的情况下,为包含该模块的每个目录定义一个 VCS 根目录。您应该删除 VCS 条目<Project>
只需添加各个模块的条目,使其看起来像这样:
If you have files modified in several different repositories and hit CTRL+K or otherwise open the commit dialog all changed files will be selected and when you commit your changes a new commit with the same message will be created in all repositories containing the changed files.
如果您只想从单个模块提交文件,请在提交对话框中手动选择它们,或者右键单击您的模块,转到 Git 并选择提交目录.
To push the commits just hit CTRL+SHIFT+K and you should see something like this (notice that both modules are included).
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)