thomas
thomas

Reputation: 1271

issue with Intellij : local branches don't show

In a terminal I have switched to a local branch on my project. enter image description here When I open Intellij, it still points to Master. And when I open the git branch panel (bottom right of Intellij), I only see Remote branches.

enter image description here

Do you know how to switch to the same local branch in Intellij, and how to display the local branches too?

Thank you.

Upvotes: 0

Views: 820

Answers (2)

Fabian Reh
Fabian Reh

Reputation: 11

I had the same issue. Like Dmitrii already said. There is a setting in Inttelij that enabled it for me. It's called "Execute Branch Operations on All Roots".

Setting in Intellij to enable Git Operations on all Repositories

Upvotes: 1

Dmitrii Smirnov
Dmitrii Smirnov

Reputation: 7528

it still points to Master

How do you know? When you are on some branch, IntelliJ will at least show the branch itself in the popup, with a HEAD mark and ability to rename.

It looks like branches popup is attached to some other repo. Make sure the mapping in Settings | Version Control is correct and check the IDE logs for possible errors.

Upvotes: 0

Related Questions