IntelliJ and Git Branch Name

I recently migrated from Eclipse to IntelliJ. The problem, as I am a keyboard shortcut, but that is not what I am talking about.

I am missing the git branch name shown in the package / project view.

Does anyone know a way to configure IntelliJ to display what the git branch the project is in, so I don't have to go to the terminal and check.

Thank.

+45
git intellij-idea
Jul 12 '10 at 10:10
source share
8 answers

As in IntelliJ 11, the current Git branch is displayed in the lower right corner of the status bar. Moreover, clicking on the branch name displays a nice pop-up window with all available branches, and you can invoke some actions on them.

+79
Jul 26 '12 at 14:50
source share

Since IntelliJ cannot show its branch, I found a way to add a branch to my bash prompt in the terminal. I added this to my .bashrc file, and I get a good real-time branching indicator.

#Git branch prompt function parse_git_branch { git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } function proml { local BLUE="\[\033[0;34m\]" local RED="\[\033[0;31m\]" local LIGHT_RED="\[\033[1;31m\]" local GREEN="\[\033[0;32m\]" local LIGHT_GREEN="\[\033[1;32m\]" local WHITE="\[\033[1;37m\]" local LIGHT_GRAY="\[\033[0;37m\]" case $TERM in xterm*) TITLEBAR='\[\033]0;\u@\h:\w\007\]' ;; *) TITLEBAR="" ;; esac PS1="${TITLEBAR}$RED\u@\h:\w$GREEN\$(parse_git_branch)$LIGHT_GRAY\$ " PS2='> ' PS4='+ ' } proml 

EDIT: Ignore this prompt. If you need a GIT prompt, use http://volnitsky.com/project/git-prompt/

+4
Aug 05 '10 at 16:52
source share

Install IntelliJ GitToolBox Plugin

enter image description here

+4
Aug 24 '16 at 18:06
source share

Coming from Eclipse, I'm used to it, so I created a plugin for this:

https://plugins.jetbrains.com/plugin/7802?pr=idea

+3
May 30 '15 at 2:45
source share

This option seems unavailable with the current Git integration in IntelliJ IDEA .

One way to solve the problem would be to start a fake push, because the push window will then display the current branch.

Push changes options

(just click "Cancel" instead of moving forward by pressing:
You have the information you were looking for first.)

+2
Jul 12 '10 at 11:17
source share
  • You need to add VCS to the project if it has not already been completed.
  • CTRL SHIFT A - opens a search
  • Type - Status
  • Choose status setting
  • Click Versioning Button
  • It will list unregistered projects.
  • Select your project, then click the + button on the right panel.
  • If you initialized git in your local, then it would not request the git path.
  • Check the other parameters to suit your requirements and then apply.

Congratulations, you are done if you turned on the status bar.

+2
Mar 14 '17 at 11:14
source share

This is a late answer if someone is looking for a way to see the current git branch in intelliJ.

enter image description here

  1. Turn on the status bar and see in the lower right corner where the current branch is displayed, and you can also switch between branches.

enter image description here

0
Aug 04 '16 at 20:43
source share

I had a problem due to which I did not have a git line or indexing after switching to IntelliJ 2017.2 - my problem was before the Code Outline plugin. I deleted its jar file from C:\Users\[user]\.IntelliJIdea2017.2\config\plugins restarted IntelliJ and I suddenly got information about the branch and git indexing. Maybe this will help someone else ...

0
Jul 26 '17 at 9:30
source share



All Articles