Git cherry pick tutorial. How to use git cherry-pick.

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 160

  • @ajaychowdarykandula2230
    @ajaychowdarykandula2230 4 года назад +31

    Thank you. I am at work and everybody waited for as I struggled with this. I have never cherry picked using git before and you saved me from standing there like an idiot.

    • @Ihatetomatoes
      @Ihatetomatoes  4 года назад +1

      Great to hear that it was so useful!

  • @ldelmar3875
    @ldelmar3875 3 года назад +27

    Thanks Moby, didn't know you where into GIT

  • @Chiramisudo
    @Chiramisudo 4 года назад +17

    If cherry-pick was renamed as tomato-pick would you still use it? 😋

    • @Ihatetomatoes
      @Ihatetomatoes  4 года назад +3

      Haha, definitely not :)

    • @Hasnain1F
      @Hasnain1F 3 года назад

      How about cotton-pick?

    • @Chiramisudo
      @Chiramisudo 3 года назад +1

      @@Hasnain1F LMBO!!! The woke left would be all over that. 😂

  • @pinakim11
    @pinakim11 3 года назад +4

    I was always afraid to try the cherry-pick in git. After seeing your video I tried and worked like a charm, thank you. One more suggestion - put a smiling photo, the photo you put on the video looks like you are miffed :).

    • @Ihatetomatoes
      @Ihatetomatoes  3 года назад +1

      Thanks for the suggestion😆 and great to hear that the video was so useful.

  • @Jared-Cruz
    @Jared-Cruz 4 года назад +7

    Great video! I'm fairly new to git and I was struggling with understanding the use case for a cherry pick. You made it very clear and simple!

  • @DanniT74
    @DanniT74 3 года назад +3

    Did you use an extension to get your terminal to show colorized tags for branches? If so, how do? :)

  • @BookofYAH777
    @BookofYAH777 Год назад +1

    why do you hate tomatoes? What wrong have the tomatoes done to you?

  • @muhammadyasser9201
    @muhammadyasser9201 3 года назад +3

    How can anyone dislike this? I never heard of cherry picking before but understood this clearly, subscribed

    • @Ihatetomatoes
      @Ihatetomatoes  3 года назад +2

      Thanks mate, really appreciate it!

  • @master2466
    @master2466 2 года назад +10

    Straight to the point. A complete Software release cycle from end to end in a CI/CD including the branch strategies would be a great help. I look forward to it.

  • @dmytrokalinowski3107
    @dmytrokalinowski3107 2 года назад +2

    Very good and straightforward explanation, thanks!
    How about a tutorial where we would need to resolve merge conflicts when doing cherry pick. Cheers

  • @beto.aveiga
    @beto.aveiga 3 года назад +2

    A perfect explanation on a dark background. Flawless victory. Thanks!

  • @windowsrefund
    @windowsrefund Год назад

    You're not actually "in vscode"....... You are actually driving this from a shell.

  • @yuzhenwang8103
    @yuzhenwang8103 2 года назад

    Let me make it simple :
    1. apply another branch one commit change to your branch as a new commit on your branch: git cherry-pick another_feature_branch_commit_id
    2. apply another branch one commit change to your branch, not as a new commit but just staged his commit change: git cherry-pick another_feature_branch_commit_id -n

  • @kungvoodoo
    @kungvoodoo 2 года назад

    His accent had me wondering what "brain cheese" was. Took me a second before I realized he was saying BRANCHES!!!

  • @kentbull
    @kentbull Год назад +1

    Clear, concise, and straight to the point. Thanks for the bonus of cherry pick with no commit!
    Good tutorial.

  • @anupthakurwar7693
    @anupthakurwar7693 Год назад

    Hi there, just wanted to know if two commits has conflict in changes while cherry picking will that be reflected before insertion of commit changes.

  • @utkarshsharma5202
    @utkarshsharma5202 2 года назад

    Thanks a lot buddy.
    I was asked this in my interview and i left it but now i understood.
    make video on merge conflict.

  • @dominiquekostler238
    @dominiquekostler238 Год назад

    What happens when you cherry pick something and end up with a conflict somehow?

  • @andytheodorko9874
    @andytheodorko9874 4 года назад +1

    1:20 I would use `git merge a6817d7` to bring AA only.
    Cherry-pick is useful when you want to merge 'BB'(`git cherry-pick 3db9646`) but ignore 'AA'.

  • @yeshwanthkumar100
    @yeshwanthkumar100 3 года назад

    why does conflicts occur when we are trying to cherry-pick latest commit. Please explain

  • @brianspinos
    @brianspinos 2 года назад

    What if you wanted to pick only BB changes? I think it bring AA along :(

  • @daniellaerachannel
    @daniellaerachannel 4 года назад +1

    another useful video ! thanks

  • @venkatt306
    @venkatt306 5 месяцев назад

    Thanks Buddy! That was clear and helpful

  • @Shreenidhi110
    @Shreenidhi110 2 месяца назад

    Thank you for the clear explanation

  • @adrianherzberger41
    @adrianherzberger41 11 месяцев назад

    how would you push this up to remote branch again, for me it seams only half done?

  • @THOMSANCHAPZ
    @THOMSANCHAPZ 11 месяцев назад

    Can we use cherry pick to get only changes in a pull request into a new local branch?

  • @katarzynakrawczyk6861
    @katarzynakrawczyk6861 6 месяцев назад

    Thank you, very useful example.

  • @valikonen
    @valikonen 28 дней назад

    let me chck what also cool videos you have

  • @himanshuchhikara7096
    @himanshuchhikara7096 2 года назад

    very helpful video , thanks :)

  • @saideeshnaga9364
    @saideeshnaga9364 Год назад

    Please help me how to raise a PR with specific commits from my own branch

  • @8ktk
    @8ktk 4 года назад

    Is it possible to copy same commit id to my-branch from his-branch ?

  • @manuk2803
    @manuk2803 2 года назад

    Such a great video. Thankyou!

  • @carlosjunod5424
    @carlosjunod5424 Год назад

    very nice explined.! more videos like this! 👍

  • @deepakr1907
    @deepakr1907 2 года назад

    Thank you so much for this, God bless you

  • @viktorlernt6063
    @viktorlernt6063 Год назад

    Very helpful, thanks!

  • @sohaibelbokhari8319
    @sohaibelbokhari8319 3 года назад

    Thanks man, thats was very helpfull

  • @soho1080
    @soho1080 3 года назад

    This is NOT a cherry picking video :)

  • @josetuz
    @josetuz Год назад

    Cherry-pick -n it's a pretty cool tip!

  • @erojoseph604
    @erojoseph604 2 года назад

    Great tutorial...but why do you hate tomatoes?

  • @윤주-l2j
    @윤주-l2j Год назад

    아저씨 git고수이시네용 도움 많이 되었습니다😊

  • @smartguy3k
    @smartguy3k Год назад

    Great video. Thanks

  • @TheGuroguro12
    @TheGuroguro12 2 года назад

    It was useful, my gratitude.

  • @sanchitsingh7089
    @sanchitsingh7089 3 года назад

    One straight forward video

  • @AliciaMarkoe
    @AliciaMarkoe Год назад

    Very useful, thank you 🦋

  • @omarbousbia6916
    @omarbousbia6916 2 года назад

    thanks petr, that was straight forward

  • @ksawery2843
    @ksawery2843 3 года назад

    The Bill Burr of programming

  • @jcavenue
    @jcavenue 7 месяцев назад

    Best explanation ever!

  • @aramosvizcarra
    @aramosvizcarra 2 года назад

    This is great! thanks you!

  • @asimmansuri7863
    @asimmansuri7863 2 года назад

    how do i set my terminal like that?

  • @fereshtehakhbari9600
    @fereshtehakhbari9600 3 года назад

    yes it was useful . thank you

  • @EminoMeneko
    @EminoMeneko 4 года назад

    Hi,
    I have a problem. I'm working on a project in a team. We are interns and not so much experienced. That said in the team I'm the one who is the most knowledgeable with GIT.
    I give them advice but it's like I'm talking to walls. I am the one who need to compile the project together (I mostly mean merge each branch).
    Extra problem. They just leave the code dirty and I'm supposed to deal with it.
    Extra problem. They don't commit too often. I had no update for weeks on GitHub and now it became a headache to even try compiling anything.
    Extra problem. They don't tell much what they've changed. I'm supposed to guess and waste a ton of time on it.I hope they'll get hired by companies which rely heavily on GIT and learn to accept communication is paramount (At least comment on GitHub for God sake 🙍‍♂️).
    Every time I merge branches I have old crap I already fixed but it gets overwritten, because hey their branches are like weeks too old...
    So the question would be:
    Can I just include specific files or lines from a commit?
    That'd be extremely helpful.
    PS: I realise I might merge in the wrong order, should there be one. But the question still applies.
    Thanks.

  • @rosenlu3819
    @rosenlu3819 2 года назад

    Great work and thank you

  • @Human_Evolution-
    @Human_Evolution- Год назад

    What is best for pushing 1 specific commit to all branches while keeping all branches unchanged other than the 1 new commit? It would be nice to not have to switch to 10 branches.

  • @tomburns9296
    @tomburns9296 2 года назад

    Very clear and helpful

  • @JanacMeena
    @JanacMeena 2 года назад

    1:24 - VS Code Example

  • @TonySanChannel
    @TonySanChannel 2 года назад

    This was scary for me at first. But now I'm confident with this command. Thanks for saving my ass! The `-n` option is very useful as well!

  • @muhammadnoman94
    @muhammadnoman94 Год назад

    To the point! Liked it.

  • @tilthesoup8107
    @tilthesoup8107 2 года назад

    I really like your terminal theme, would you mind sharing your .zshrc file?

  • @someonlinevideos
    @someonlinevideos 3 года назад +1

    Excellent. Subscribed and liked

  • @rcampbellwhite
    @rcampbellwhite 3 года назад

    Which VS Code extension are you using to display your current branch in the terminal window? It looks good!

  • @randikavishman3971
    @randikavishman3971 2 года назад

    Thanks!
    Very succinctly explained!

  • @nilesh6090
    @nilesh6090 4 года назад

    Explain the difference between origin master & origin/master

  • @prachibile2798
    @prachibile2798 2 года назад

    Hello Dear, it was really helpful video. Thanks a lot!! I also would like to know about difference between merge and rebase.

  • @you3667
    @you3667 2 года назад

    very useful! thx!

  • @RootsterAnon
    @RootsterAnon Год назад

    Thank you! Example is great and clean!

  • @MayankGuptaMayankGupta
    @MayankGuptaMayankGupta Год назад

    Thanks a lot, this was quick and solved one of long lying issue where only certain things from uat was required to go to prod

  • @animeboy93
    @animeboy93 2 года назад

    Thank you so much. This will be useful for our workflow as my team has come up with a new branching methodology

  • @vaibhavkumar38
    @vaibhavkumar38 2 года назад

    hi this was a great video. can you please show how to pick up a range of commits and exclude just 2 or 3 commits from that range of commits?

  • @jebronekitty
    @jebronekitty 2 года назад

    Where's the gui?

  • @EdwinRebolledo
    @EdwinRebolledo 3 года назад

    great way to explain about cherry pick, thanks

  • @Kamaltweet
    @Kamaltweet 2 года назад

    Thank you so much. You made it really easy to understand 😻.

  • @jaxparrow1794
    @jaxparrow1794 2 года назад

    Again!
    Awesome!

  • @dodiagusri2736
    @dodiagusri2736 7 месяцев назад

    very helpfull

  • @Alex-xe6bl
    @Alex-xe6bl 2 года назад

    This is more than being useful. Its life saver! thanks!

  • @stanislavbart8604
    @stanislavbart8604 2 года назад

    thank you a lot!

  • @johnbritolima
    @johnbritolima 3 года назад

    This feature is magnificent. Thank you.

  • @parmodkumar777
    @parmodkumar777 3 года назад

    nice explaination

  • @PeterRobieArt
    @PeterRobieArt Год назад

    Thanks for this! It was really helpful. I've been using git for quite some time and haven't really dug too deep into it. Had an issue that I needed to move some code from one branch to another and this really helped out.

  • @Marleixo
    @Marleixo 2 года назад

    Finally I've found someone that manage to explain how it works, simple and fast! Thansk man and congrats!

  • @ankit65668
    @ankit65668 3 года назад

    Thanks Buddy for this super easy tutorial

  • @kritsaphongphuthibpaphaisi1509
    @kritsaphongphuthibpaphaisi1509 2 года назад

    Detailed and Straight forward thank you

  • @BarrettGamingHD
    @BarrettGamingHD 2 года назад

    Very straightforward, thanks!

  • @jiveshshrivastav9722
    @jiveshshrivastav9722 2 года назад

    channel name OP

  • @macka76q
    @macka76q 3 года назад

    Thanks for the tutorial, it's helpful. I have a question, I add cherry picks from source 1 after fetching it. I then want to fetch a new source to add commits from but it still wants to add from the source 1, what am I doing wrong here?

  • @reeteshzope6815
    @reeteshzope6815 3 года назад

    Thanks a lot. You saved me!
    Learned something new today.

  • @sushantw834
    @sushantw834 2 года назад

    Thank you.

  • @vishwanathnijampurkar9862
    @vishwanathnijampurkar9862 2 года назад

    thanks bro

  • @karankanojiya7672
    @karankanojiya7672 Год назад

    Excellent !

  • @melvilli69
    @melvilli69 4 года назад

    How do I add "his branch" to mine? git add remote alias url?

  • @vladyslavkyiashko9753
    @vladyslavkyiashko9753 2 года назад

    Thank you for a great explanation :)

  • @marrireddykumar3369
    @marrireddykumar3369 3 года назад

    Great video very useful thank you

  • @ilhamakhyar4849
    @ilhamakhyar4849 Год назад

    Straight to the point, thank you so much!

  • @fauzizaki4291
    @fauzizaki4291 2 года назад

    Useful !

  • @AdeelImranr
    @AdeelImranr 2 года назад

    thank you

  • @critory1049
    @critory1049 3 года назад

    Thanks for the video! It helped a lot

  • @renatobalcazar4269
    @renatobalcazar4269 2 года назад

    brigado

  • @jesusgarayordaz5441
    @jesusgarayordaz5441 4 года назад

    Hey very nice video, so useful, but i have a question... what is the difference between cherry-pick and patch?

  • @gelooclinaria6922
    @gelooclinaria6922 3 года назад

    Noise!

  • @ramammurshal3139
    @ramammurshal3139 2 года назад

    thx

  • @8ktk
    @8ktk 4 года назад

    Thanks for this vid, can you tell me how do i remove certain commits from a specific branch in no order