CJunk
CJunk

Reputation: 181

Git Branch name is missing from status bar. How do I get it back?

A couple of days ago I was trying to speed up Visual Studio Code by removing some extensions. I think I have removed an extension that would display the Git branch in the bottom left of the status bar.

Does anyone have any idea how to get it back again?

VSCODE screenshot

Upvotes: 6

Views: 12401

Answers (5)

Zain Ali
Zain Ali

Reputation: 66

In my case, the problem fixed itself after I restarted VS Code.

Upvotes: 3

drsimonz
drsimonz

Reputation: 580

In case anyone runs into this while using VSCode Remote Development via SSH, I found that simply disconnecting and connecting again caused the branch name to come back.

Upvotes: 0

Veverke
Veverke

Reputation: 11378

I originally tried Timothy G.'s answer - I was indeed without the referred option checked - but that alone did not do the job.

I then realized that clicking in VS Code's git side menu option mentioned "No Safe Repos were found" (it claimed my repo was owned by another user). There was a button saying "Manage unsafe repos" and the moment I opened my repo this way, I believe that acted as confirming repo's validity.

I was then finally able to see the branch at the bottom.

Upvotes: 0

Timothy G.
Timothy G.

Reputation: 9145

I don't think there is an extension that controls that. I believe that is just built into Visual Studio Code.

There is however a right click option on the status bar for hiding this:

status bar option to hide source control

Do you accidentally have it hidden? If so, just right click the status bar and select "Source Control" to enable it.


After update 1.75.1 of Visual Studio Code, this option has been replaced with "Source Control Checkout". When disabled, the branch is hidden on the status bar:

status bar option to hide source control checkout

Upvotes: 10

CJunk
CJunk

Reputation: 181

Ok ,
It turns out I had DISABLED Git vscode which comes bundled with vscode. Git extension bundled with vscode

Upvotes: 1

Related Questions