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.
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.
Pingback: The Morning Brew - Chris Alcock » The Morning Brew #3247
Pingback: Dew Drop – June 8, 2021 (#3460) – Morning Dew by Alvin Ashcraft