In this lecture I would like to talk about cherry pick operation and the cherry pick allows you to take
any meat and insert it into county checked out branch as a last comment and you can use during peak
operation in several scenarios.
For example you are working on separate feature branch and the hail made several comes down and you
want to take just one comment of that feature branch and insert into for example master branch or at
least branch like a bug fix or something else and you are able to do that with cherry pick operation.
Another scenario for example you could moved to the taste head state and moved to one or two communes
now but you don't want to create new feature branch and afterwords manage it into release or master
branch.
You just want to take one or both comments from that to get state and afterwords insert them into master
or at least branch you are able to do this also using cherry pick operation.
Okay let's have a look at the cherry pick in action and let's do follow me following.
Let's create temporal branch cold temp afterwords let's make some changes in the branch combine them
and then return back to their branch and cherry pick the meat made in them branch.
Okay let's create new branch get check out there's B and gain double quotes right.
Then I'll create then branch and immediately check out.
No I'm in a new damn branch.
Now let's go to V.S. gold where I have already opened this repository.
And let's make some changes.
And let me just for example read me a file and let's assume that I want to modify width of this image
and let's make it 200 pixels.
Let's save changes let's the changes get commit this a dash M some changes of the width like so.
And changes the way I committed it get look.
And here was this comet in damp branch.
But let's assume that I don't want to manage this damn branch into Dale branch.
Instead I simply want to take this comet and insert it into Dale branch.
For that I need someone who cares about the feet of this comet.
Let me copy it and return back to Dale branch get check out there.
Let's clear our terminal here and here.
I get chariot beak and based.
Someone has that they have just Corbett from them branch.
Let's press enter.
And now you'll see that new comet was automatically created in their branch.
And if I'll have a look at history here you will see this comet.
Same as it was made in damn branch.
But of course here shoving the cast will be different now because the gate gets created brand new comet
object it has a mars or date of creation and that's why shot on a cache of this comet object is completely
different.
But this how you're able pretty fast and easy.
Take the meat from any owls or place and insert into currently checked out branch and to give notice
that this operation isn't destructive.
It simply allows you to apply any owls or changes ready fast and easy.
You are also able to pass additional options to cherry pick a comment like this dash low Comet.
Let's try that.
Let's go back to them branch get check out damn and make some changes again.
Let's go back to the ice cold and let's adjust these sweets once again so we hundred pixels with complete
change.
Get comet dish a dish em change of the winds in the temp branch
what's coming in this.
And let's have a look at the show on the cast of discomfort object this one.
Let me copy it and return back to Dale branch get check out Dave and he let's cherry pick but with option
there's dash no commute.
What's clear timing no good.
Beep there's dash no commute and based short on cash like soul and now you'll see that there are changes
that way are not yet committed.
Let's get a status of good repository guest status and you'll see that file read Middleton D was modified
and we are able to actually commit those changes using new commit message but before committing go let's
actually have a look at changes in reading into Middleton do file for that I can enter guild status
with verbose option and you'll see that this change was actually made we have adjusted the wheels here
in this image HMO tech and that's change that we made and be a scold in damp branch but as you'll see
a wheeze does there's no commute option you are able to commit yourself agent could you commit message
if you want and Blizzard wouldn't get commit dust M changed the image with like so let's go meet it
and no I'll see new commute here in history with this commute message but changes are exactly the same
as we have made in Dan Branch and we can improve that by entering yet so actually look me a copy of
someone a cache of discrete object and clear terminal and enter so and based diskette and here below
you see this change.
Okay this go you're able to use cherry pick operation and to gain does useful when you want to take
just one commute from any outside branch or for example the best state and apply it to county job at
our branch.
Okay this all for this leaves your end to the next one.
Let me talk about Arraf hello command get rough look I'll see you soon bye bye.