IntelliJ and Git Branch Name

Viewed 53663

I've recently moved from Eclipse to IntelliJ. A challenge as I'm a keyboard shortcut junkie, but that isn't what I'm here about.

I miss having the git branch name shown in the package/project view.

Does anyone know of a way to configure IntelliJ to display what git branch the project is in, so I don't have to keep switching back to the terminal and checking.

Thanks.

11 Answers

Firstly, if your entire status bar is hidden or not display currently; So, you can enable it by easily by Tick the Status Bar option like this:

View -> Appreances -> Then Tick the Status Bar option

Status Bar option

If your problem is still displaying the Status Bar in the IDE though, your GIT branch section doesn't display. Then you can use Status Bar Widget option to enable it also.

View -> Appreances -> Ststus Bar Widgets -> Git Branch

State Bar Widget option

Hope this will fix your issue.

Try using git.exe from "/bin" folder

Example Image

Just install GitToolBox plugin.

Side note
The default behavior is to show the file full-path and it will be hard to see the branch names since they're pushed all the way to the right. To solve that you can:

  • Go to File > Settings > Other Settings > GitToolBoxGlobal > Project View and arrange the ordering of the variables in the left pane. E.g. I use the following order: {status} {branch} {tags on head} {location}; this will display something like 3↑ 2↓ master 1.0.0 /path/to/location
  • Or install PathHide plugin to get rid the module path if you don't need it.
Related