Wednesday, February 4, 2026

Cherry Picking in the Visual Studio Git Repository Window [Ep 1] Advanced Series

hi everyone thanks for joining this
session on cherry picking in the visual
studio get repository window where we'll
cover what cherry picking is and how to
do it easily with the help of the
multibranch git graph in vs cherry
picking a commit is a way to apply a
specific commit from one branch to
another this can be useful in situations
where you want to selectively apply
changes from one branch to another
without merging the entire Branch for
example if you have a feature branch
that contains multiple commits but you
only want to apply one of those commits
to your main branch you can use cherry
pick to apply that specific commit first
you want to make sure you don't have any
uncommitted changes you can double check
this in the get changes
window then you can visualize the two
branches you'll need the one you're
currently working on and the other one
that you want to cherry-pick the commit
from since I have the current working
Branch checked out all I need to do is
click on the I icon to add the second
Branch to my my view and easily see
which commit I might want to cherry pick
I'll bring up the commit details to
verify it's the commit I
want this is analogous to the falling
command on the command
line but with the multibranch git graph
I no longer need to Fumble with the git
log and commit hashes to create my
command and I'm confident that the
cherry-picked commit was added to my
working Branch correctly sometimes
cherry picking resolves in merge
conflicts if there are changes that
overlap
but Visual Studio will help you resolve
those easily with the merch editor which
you can learn how to use in this
previous video thanks for watching
everyone

No comments:

Post a Comment