Control Auto Solution load with Git Repository Open in Visual Studio

Control Auto Solution load with Git Repository Open in Visual Studio

Visual Studio now has a fully integrated GitHub account experience. With the past few updates, the complete experiences for Git in Visual Studio have changed. Creating a Repo, cloning a repo, and managing branches all bring a fresh and productive experience. You can now add both GitHub and GitHub Enterprise accounts, Switch between repositories very easily. Visual Studio now also lets us control the Toggle auto solution load with the git repository. This enables developers to control if we want to open the repository when we are selecting them. You can now enable or disable the auto solution load when we open a git repository.

Auto Solution load with Git Repository Open

Firstly, To enable or disable Auto solution load with git repository, you need to navigate to Tools > Options > Source Control > Git Global Settings

Related Tip: Switch between Git repositories and branches seamlessly in Visual Studio – Daily .NET Tips (dailydotnettips.com)

Secondly, there you will find an option “Automatically load the solution when opening a Git Repository” . When it is checked, when we switch the repository it will load the solution with in Visual Studio.

Automatically load the solution when opening a Git Repository

Related Tip: How to view the list of all local Git Repositories in Visual Studio?

Controlling the Brach Check Out

Moreover, similar auto solution load with git repository open, we can now control the check out branches. As of now, when we doubled click or press enter, the branches got checked out automatically. Sometimes, we may don’t want that. with the recent updates in Visual Studio, we can control the branch check-out option.

To enable or disable automatic check out when double click on branches, navigate to Tools > Options > Source Control > Git Global Settings

There you will find an option “Automatically Check out branches with a double-click or Enter Key.” Once it’s checked, you will find similar check-out branches, or else you need to check out the branch explicitly.

Automatically Check out branches with a double-click or Enter Key
DON'T MISS OUT!
Subscribe To Newsletter For your Daily Development Tips and Tricks  

 Best Tips & Tricks on Microsoft Technology Platform 

Invalid email address
We promise not to spam you. You can unsubscribe at any time.
Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

2 Comments to “Control Auto Solution load with Git Repository Open in Visual Studio”

Post Comment