Switching Between GitHub Branches in Visual Studio

Leave a comment

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.

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

Leave a Reply

Your email address will not be published. Required fields are marked *