Search code examples
gitbranchvisual-studio-2022multiple-repositories

How to show the current instead of "multiple" git branch in visual studio 17.4.4 status bar (multiple repos)


Since the new installation of Microsoft Visual Studio Professional 2022 (64-bit) - LTSC 17.4 Version 17.4.4 the status bar in the right lower corner is showing be "multiple" for the branch name instead of the current branch.

enter image description here

I use a solution which has a subrepository. When I start VisualStudio and choose the correct repository in the status bar it shows me the folder view in the solution explorer and actually shows the correct branch name. But as soon as I load the solution it switches to the uninformative display as I have posted.

I looked inside the source control settings, searched around the net and read Multi-repository Support Released and the documentation, but they show basically how to use all git operations in the context of multiple repositories and I could not find the information on how to make VisualStudio show the current checked out branch in the status bar.

Any help would be appreciated.


Solution

  • One option would be to turn off multi-repository support in the options under Environment>Preview Features.

    However, if you need this enabled for your workflow, then maybe someone else can offer you more info as I am not sure how to have branch shown while that is enabled.