Search code examples
gitpycharm

Pycharm to show current working branch name


When viewing VCS window in Pycharm IDE, I have no idea what git local branch I'm working on as well as its mapped git remote branch.

So how to show current working branch name in Pycharm?

p.s.

I'm using PyCharm Community Edition 2016.2


Solution

  • Local Working Branch

    The section "Which branch we are working in?" is quite clear:

    Actually, this information is available in the Logs tab, but there are two another ways to see the current branch.

    First, there is a special command on the main menu VCS→Git→Branches. The pop-up window of existing branches appears

    https://confluence.jetbrains.com/download/attachments/51959419/git6.png?version=1&modificationDate=1377102558000&api=v2

    Second (and most handy) is to use the Git widget in the Status bar:

    enter image description here

    Remote mapped branch

    The remote tracking branch though, does not seem to be displayed, except when you are pushing the branch via menu VCS - Git - Push

    https://www.safaribooksonline.com/library/view/mastering-pycharm/9781783551316/graphics/1316_09_07.jpg

    For that, a git branch -avv in command line remains the most complete source of information.