简体   繁体   English

具有多个项目的 Git 分支视图

[英]Git branches view with multiple projects

We have 4 multi-module projects (Maven), each one in its own Git repository.我们有 4 个多模块项目 (Maven),每个项目都在自己的 Git 存储库中。 There are interdependencies between the projects.项目之间存在相互依存关系。

In order to have all our code available in a single IntelliJ window, I have imported all the projects as modules.为了在单个 IntelliJ 窗口中提供我们所有的代码,我将所有项目作为模块导入。

But this has had the following effect.但这产生了以下影响。 The Changes > Log is the view where I can see all branches for my project. Changes > Log 是我可以查看项目所有分支的视图。 When I had 1 IntelliJ window per project, the branches I could see there were the branches of the project I had opened.当我每个项目有 1 个 IntelliJ 窗口时,我可以看到的分支是我打开的项目的分支。 Now that I have all the projects, I can see all the branches intermingled, and it makes it really difficult for me to understand what is going on.现在我有了所有的项目,我可以看到所有的分支混合在一起,这让我很难理解发生了什么。

在此处输入图片说明

In the screenshot above, the branches marked in blue belong to the same Git repository, and the branch marked in red belong to a different Git repository.在上面的截图中,蓝色标记的分支属于同一个 Git 存储库,红色标记的分支属于不同的 Git 存储库。

Although there are some filters, I can not see any filter by module (Git repository).虽然有一些过滤器,但我看不到任何模块过滤器(Git 存储库)。 It would seem obvious to me to only see branches group per Git repository.对我来说,只看到每个 Git 存储库的分支组似乎很明显。 Is there any way to do that?有没有办法做到这一点?

OK, the solution for my question is the following:好的,我的问题的解决方案如下:

VCS > Browse CVS repository > Show Git repository log. VCS > 浏览 CVS 存储库 > 显示 Git 存储库日志。

Select the directory representing the Git repo you are interested in.选择代表您感兴趣的 Git 存储库的目录。

Tips提示

  1. Select a repository from the Paths submenu.Paths子菜单中选择一个存储库。
  2. Cmd+click (mac), Alt+click (win/linux) to select the specific one. Cmd+click (mac), Alt+click (win/linux) 选择特定的。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM