Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Update 1 not showing current Git branch

I have two computers, both have Visual Studio 2015 Community installed. Both Visual Studio has Update 1 installed too...

The moment I update my Visual Studio to Update 1, I notice there is a nice Git branch status indicator at the bottom right of the Visual Studio status bar (shown below):

1st Computer

1st computer

However, there is no such status on my other computer, both are running the same version of visual studio... I have spent an hour scratching my head trying to get the status to appear..

2nd Computer

2nd computer

How do I get that Git status bar?

like image 403
Rosdi Kasim Avatar asked Dec 13 '15 04:12

Rosdi Kasim


People also ask

Why does Visual Studio not show new branch?

We have determined that this issue is not a bug. To see the new created branches in web site, please pull or sync your local repository first. Then you will see the new branch.

How do I find the current branch code in Visual Studio?

To set branches, click on the current branch name in the bottom left corner of Visual Studio Code (the default branch on a newly pulled project is usually the 'master' branch). This will display a list of branches at the top of the VS Code window.

How do I get the latest code from a git branch in Visual Studio?

Use Git pull when you know you want to update your current local branch right after a Git fetch. To configure Visual Studio to rebase instead of merge when you Pull: From the Git menu, go to Tools > Options > Source Control > Git Global Settings.

How do I reset a branch in Visual Studio?

To do the same in Visual Studio, right-click the commit that you want to reset your branch to, and then select Reset > Delete Changes (--hard). To learn more about resetting branches, see the Git webpage for the reset command.


1 Answers

I solved it by "repairing" my Visual Studio installation... I think it re-installs everything..

enter image description here

like image 71
Rosdi Kasim Avatar answered Nov 13 '22 04:11

Rosdi Kasim