Pycharm to display the name of the current work branch

When viewing a VCS window in Pycharm IDE, I have no idea which git local branch I am working on, as well as its remote git branch.

So how to show the current working branch name in Pycharm?

ps

I am using PyCharm Community Edition 2016.2

+5
source share
1 answer

Local working branch

The section “ Which branch we work in?” Is clear:

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

Firstly, there is a special command in the main menu of VCS → Git → Branches. A pop-up window of existing branches will appear.

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

The second (and most convenient) is to use the Git widget in the status bar :

enter image description here

Remote display branch

The remote tracking branch, although it does not seem to be displayed, except when you click the branch through the VCS menu - Git - Click

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

To do this, the git branch -avv command on the command line remains the most comprehensive source of information.

+8
source

All Articles