Display current Git branch in Visual Studio?
git, visual-studio
Solution
The Git Source Control Provider displays the branch name in the Pending Changes tool window.
The VSCommands extension adds the branch name to the Visual Studio 2013 title.
Problem
It's quite annoying to work in the wrong branch when using Git (in TFS). Is there a way to configure Visual Studio to clearly display what branch that's currently active? Like, put it in the title bar? Below is outdated. The newer version of the extension in the link can display the Git branch now. No need to hack anymore. If nothing exists maybe it could be possible to hack Labs → Visual Studio Extension: Customize Visual Studio Window Title (source code is at https://github.com/mayerwin/vs-customize-window-title). What is the code to get the current Git branch of the current project in Visual Studio?