Wednesday, February 4, 2026

Creating and Leveraging Branches with GitHub and Visual Studio [Ep 1] Intermediate Series

hi everyone thanks for joining this
session on creating and leveraging
branches with GitHub and visual studio
where we'll cover what branching is used
for in git and how to create delete or
rename branches in both GitHub and
visual
studio branches allow you to separate
your work from that of your colleagues
or the more finalized or stable parts of
your code base that you might want to
keep protected since they're for
production that main branch is usually
called Main and there are many branching
strategies out there but each requires
creating branches which I'll show now
here I have a new feature I want to work
on so I'll create a new branch called
new feature one I have the option to set
where I'm branching
from and I'm going to choose
main this is also analogous to doing the
following command on the command line
when I click the checkout check mark it
means that I'll be jumping to that
Branch where I'll be working on now from
the get repository window I can rename
my local branch from the context
menu and you can see that the delete
option is gr out here because I am on
that current checked out
Branch now I'll add a new commit to the
my new feature Branch so that we can see
how it is branching off the main
branch
and if I wanted to delete my main branch
or any of the branches that I'm not
currently on and have checked out I can
right click and click the delete
button lastly in this other repository
with many branches I can use the
multibranch graph feature to visualize
how different branches interact with one
another and compare commits between
branches I can control select two of
them and click compare commits in the
context menu
thanks for watching
everyone

No comments:

Post a Comment