In this post, we will look at how to switch between GitHub branches in Visual Studio.
First, open a solution that is connected to a GitHub repository and go to Branches:

In this case, we have several branches – Master, release1, release1a, etc. We also have remote GitHub branches. We see the active branch in brackets, in this case master:

Let’s open the Program.cs file in the solution:

Now, if we select Release1 on the right, we see the file updated to that release version:

Now, if we select Release2 on the right, we see the file updated to that release version:

That’s it, you can move between branches this way.

Explore AI, agents & Microsoft technology.
I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.
Subscribe on YouTube →