Search code examples
intellij-ideajetbrains-ide

How to show parallel lines UI for git branches in IntelliJ?


How can I show parallel branch lines in IntelliJ git logs?

enter image description here

This is my old project and it shows like that.

In my newer project although I have multiple branches merged to master already, still, that beautiful view isn't there, it's just the straight line appearing.

Is this an IntelliJ bug or I don't get when those lines gets showed?


Solution

  • Judging by the screenshot, the history of your repository is just linear - there are no commits that have more than a single child - that is why no other branches are in the graph.

    Branches in git are in fact just a reference to a commit. So several branches can be referencing the same commit without producing any branches in the graph. This seems to be the case.