Git CHERRY PICK Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 115

  • @themoderncoder
    @themoderncoder  2 ปีที่แล้ว +4

    I have more Git videos! th-cam.com/play/PLfU9XN7w4tFwKwh_xPSQ_X1-hROQEpHnM.html. Additionally, a written reference for this video is available on my blog: www.themoderncoder.com/git/

  • @softwaredevx
    @softwaredevx 10 หลายเดือนก่อน +5

    Crystal clear, to the point explanation. Love your teaching style with animations. Please keep on making videos.

  • @shivamthakur1176
    @shivamthakur1176 9 หลายเดือนก่อน +2

    Straight to the point, easy to understand for the beginners with good animation

  • @pelvispresley22
    @pelvispresley22 ปีที่แล้ว +2

    wondered how the hell cherry pick worked for years after someone at an internship tried to show me years ago but in the most convoluted way. Now you've made me realize how easy it really is in just 5 mins and actual use cases for it. I was nervous about it for nothing lol thx man!

    • @themoderncoder
      @themoderncoder  ปีที่แล้ว +1

      Honestly, it’s comments like yours that keep me motivated! Thanks for letting me know

  • @Jan_Seidel
    @Jan_Seidel วันที่ผ่านมา

    The graphics are really a tremendous help

  • @subramanyakrishnamurthy8352
    @subramanyakrishnamurthy8352 8 หลายเดือนก่อน +2

    "No nonsense, just get to the point" videos. Very easy to follow and much appreciated!!

  • @CodeChronicals
    @CodeChronicals 6 หลายเดือนก่อน

    OMG, this is amazing! The way you explain the cherry-pick command with animation made it so easy to understand. It just clicked with me.

  • @prasanthbupd
    @prasanthbupd 4 หลายเดือนก่อน +2

    concise & precise only video worth it
    you earned a subscriber. thanks
    BTW I use Arch

  • @nageshvagicharla
    @nageshvagicharla 7 หลายเดือนก่อน

    Thank you, till now I faced difficulty about cherry picking, but after watching this video it made completely sense. Thanks again.

  • @namenone8387
    @namenone8387 2 หลายเดือนก่อน

    Superb visual presentation for us understanding it in an easy manner! Thank you!

  • @mariocalderon2148
    @mariocalderon2148 8 หลายเดือนก่อน

    Thank you, amazing!
    I was always "afraid" of using cherry picking, but with this excellent explanation I will use it often.

  • @matk2283
    @matk2283 10 หลายเดือนก่อน

    you are the best !! my take way:
    learned how to check the log of another branch without switching to it.
    learned the concept of cherry pick
    love your animation.
    my great gratitude to you for your time to teach us all this. you must be a very nice person !!.
    Thanks again !
    Mathew. K from Colorado

  • @anubhapant5227
    @anubhapant5227 3 หลายเดือนก่อน

    Thanks for sharing this. These videos are very helpful, and the way you have explained everything has cleared all my doubts.

  • @smileyboy2700
    @smileyboy2700 ปีที่แล้ว

    Thank you. I was annoying developers with it before but it started to seem too bad so I wanted to take control of it and cherry pick myself so Devs can focus on code. Thank you

  • @mauro334
    @mauro334 7 หลายเดือนก่อน +4

    I've just prepared my first hotfix release using your tips. My tag version is going to be in production next wednesday. 😝

    • @themoderncoder
      @themoderncoder  7 หลายเดือนก่อน

      Nice! Great job 👏

  • @Empea4all
    @Empea4all 11 หลายเดือนก่อน +2

    Crystal clear, and just what I needed.

  • @AnHoKuka
    @AnHoKuka หลายเดือนก่อน

    MAAAAAN
    It was laconic, visually and precisely perfect!
    Very helpful!
    Thank you, and may G-d bless you

  • @rbid
    @rbid 5 หลายเดือนก่อน

    Thanks for the tips. Excellent short video as usual.
    Greetings from the Galilee.

  • @TMDX-j2q
    @TMDX-j2q 10 หลายเดือนก่อน

    Wow, this is a great explanation! Thank you for sharing, helped me a lot to understand how cherry-pick works.

  • @hacikho
    @hacikho ปีที่แล้ว

    Dudede I liked your teaching skills and visualization, and now I understood cherry pick. Awesome. Thanks

  • @adipati27ma
    @adipati27ma 5 หลายเดือนก่อน

    Best git explanation ever, very clear and just perfect!!

  • @Ahmad_Al-Deeb
    @Ahmad_Al-Deeb 4 หลายเดือนก่อน

    Thanks a lot! I'm very excited to check your other Git content!

  • @gulhermepereira249
    @gulhermepereira249 วันที่ผ่านมา

    Great example, really helpful

  • @abcdabcd8605
    @abcdabcd8605 8 หลายเดือนก่อน

    Amazing explanation. Those animations made it very easy to understand.

  • @DeVontaeMoore-wb6gw
    @DeVontaeMoore-wb6gw 14 วันที่ผ่านมา

    Good content! I like the visuals!

  • @antonyjere
    @antonyjere ปีที่แล้ว +5

    Lovely! Thank you so much for this. You kept it dead simple, which is what we are looking for.

  • @josemartins-jumia
    @josemartins-jumia 2 ปีที่แล้ว

    You have the best git videos on the all internet. Congrats

  • @gopikrishna1831
    @gopikrishna1831 2 ปีที่แล้ว +5

    tutorial is clean and crispy

  • @amoohesam
    @amoohesam ปีที่แล้ว

    Bro I just subscribed without any hesitation. Thank you for your great work!

  • @Alex-bc3tt
    @Alex-bc3tt ปีที่แล้ว

    Pure definition of getting straight to the point🙏🙏🙏🙏

  • @javirg89
    @javirg89 3 หลายเดือนก่อน

    short, easy to understand... great! thanks

  • @pablo03v
    @pablo03v 10 หลายเดือนก่อน

    Thanks, you made it very straight forward!

  • @ceyhunazizzade9637
    @ceyhunazizzade9637 2 หลายเดือนก่อน

    Thanks for the clarification!

  • @davidmata3104
    @davidmata3104 ปีที่แล้ว

    The best git tutorial Ive ever seen

  • @deviprasadpatnaik6837
    @deviprasadpatnaik6837 หลายเดือนก่อน

    quite help full article thank you so much

  • @SJMilnor
    @SJMilnor ปีที่แล้ว

    Thanks, man. That was an ideal tutorial video. Straight to the point and clear animations to help. You rock!

  • @ewamewa2436
    @ewamewa2436 ปีที่แล้ว +1

    Well explained, clear and to the point. Thank you 🙂

  • @iatheman
    @iatheman ปีที่แล้ว

    Top teaching style on these videos!

  • @brunopagno
    @brunopagno 5 หลายเดือนก่อน

    Nice tutorial!

  • @rishu4225
    @rishu4225 6 หลายเดือนก่อน

    Good stuff! Many thanks.

  • @nathanmersha5295
    @nathanmersha5295 2 ปีที่แล้ว

    honestly I though I would die before learning cherry pick, thank you for the clear explanation

  • @jeffstone684
    @jeffstone684 6 หลายเดือนก่อน

    thanks @themoderncoder! that was very clear and easy to understand. Now I want to know what sorcery you used to copy both of the git hashes onto the clipboard at once 😀

    • @themoderncoder
      @themoderncoder  6 หลายเดือนก่อน

      Lmao, that’s amazing you caught that! I edited that in post because it felt too clunky for the flow of the video to go back and forth copying one then the other. If anybody knows of a tool to do that, I’m all ears too

  • @showsshorts4696
    @showsshorts4696 10 หลายเดือนก่อน +1

    awesome super easy

  • @vincenguyendev
    @vincenguyendev 2 ปีที่แล้ว +4

    you're amazing , keep it the good work :)

  • @TheProtagonist555
    @TheProtagonist555 10 หลายเดือนก่อน

    Wow.. how easily explained!

  • @procrastinator24
    @procrastinator24 6 หลายเดือนก่อน

    great video! Thanks so much!

  • @AnantaAkash.Podder
    @AnantaAkash.Podder ปีที่แล้ว

    Well explained man... thanks for making it easy

  • @EdchelStephenNini
    @EdchelStephenNini 6 หลายเดือนก่อน

    Thank you Jack!!

  • @__greg__
    @__greg__ 5 หลายเดือนก่อน

    awesome and to the point, ty!

  • @SZOKE19940321
    @SZOKE19940321 ปีที่แล้ว

    the visualization really helps, appreciated!

  • @irvanhardyanto7038
    @irvanhardyanto7038 7 หลายเดือนก่อน

    Nice explanation, thankyou

  • @damaroro
    @damaroro ปีที่แล้ว

    straight to the problem, thanks

  • @kenansenagic384
    @kenansenagic384 10 หลายเดือนก่อน

    Great tutorial :)

  • @sourPollo
    @sourPollo ปีที่แล้ว

    You made it very easy to understand! Thank you!

  • @yasirirfan5262
    @yasirirfan5262 4 หลายเดือนก่อน

    good work.

  • @nijuyonkadesu
    @nijuyonkadesu ปีที่แล้ว

    Simple and nice explaination !

  • @programmingwiththotho4641
    @programmingwiththotho4641 3 หลายเดือนก่อน

    thank you dear

  • @AVISH747
    @AVISH747 10 หลายเดือนก่อน

    Subscribed...!
    Thanks a lot.

  • @ronshu123
    @ronshu123 ปีที่แล้ว

    Very helpful ! Thanks man !

  • @bradburrick
    @bradburrick ปีที่แล้ว

    Awesome and thank you!

  • @moazelsawaf2000
    @moazelsawaf2000 9 หลายเดือนก่อน

    Thank you so much ❤

  • @ucretsiztakipci6612
    @ucretsiztakipci6612 2 ปีที่แล้ว

    Clean and very easy to understand thanks man!

  • @zakariyaechmaili5647
    @zakariyaechmaili5647 ปีที่แล้ว

    thanks, clear and straight to the point ♥

  • @_duongductrong
    @_duongductrong ปีที่แล้ว

    Thank u, so clearly

  • @gostixxxx
    @gostixxxx ปีที่แล้ว

    Thanks! Very effective explanation. Even my cat now understood 😂

  • @megharajdeepak
    @megharajdeepak 9 หลายเดือนก่อน +1

    Not sure if I am doing it right. I have 2 branches, dev and main. Let's say dev and main are in sync initially. At at present, my development work in going on and I have added 3 new commits to dev (main now lags by 3 commits). At this point of time there is a production issue and I add a fix on dev and make the 4th commit.
    After switching to main branch, if I run `git cherry-pick bd46315 `, it's pulling earlier 3 commits along with 4th one. I want to pull only the 4th commit:
    bd46315 (origin/dev, dev) 4.HOT FIX ADDED
    ede1f33 3.textarea added
    88cdb80 2. select dd added
    c93667f 1. text input added
    62d132f (HEAD -> main, origin/main) Initial commit

  • @sayemalmahdi6691
    @sayemalmahdi6691 ปีที่แล้ว

    Thanks man !! Keep up the good works.

  • @pravin1877
    @pravin1877 5 หลายเดือนก่อน

    I have question - 3:57 wouldn't it be better, if order of the commit should be old to new commit i.e. bugfix in config followed by added logo to footer. Any thoughts

  • @JIGNESHPATEL-qk4yg
    @JIGNESHPATEL-qk4yg ปีที่แล้ว

    nice information

  • @stevequan7306
    @stevequan7306 3 หลายเดือนก่อน

    Nice video! Question -- what if the commit I want to cherry-pick is depending on another commit (on the "cherry" branch)"? Do I must to specify them both in a same command? Or both will be picked up automatically?

  • @joaquimferreira4954
    @joaquimferreira4954 2 ปีที่แล้ว

    Great tutorial mate, keep it up

  • @ehsantavakoli2418
    @ehsantavakoli2418 ปีที่แล้ว

    That was awesome 👍

  • @AndresGutierrez-nb6qr
    @AndresGutierrez-nb6qr 11 หลายเดือนก่อน

    Awesome. Gracias 🤝

  • @marcosradix1
    @marcosradix1 ปีที่แล้ว

    awesome, thank you!

  • @chris2ferUtoob
    @chris2ferUtoob 3 หลายเดือนก่อน

    What is the Font and related config for your Terminal? I love it.

    • @themoderncoder
      @themoderncoder  3 หลายเดือนก่อน +1

      Thanks. Short answer: Iosevka is the font and I cover most of the config here: th-cam.com/video/DetYI7bjNrw/w-d-xo.html

  • @khalidsaifullahfuad
    @khalidsaifullahfuad 2 ปีที่แล้ว

    Short sweet, great tutorial

  • @shashankkumar1633
    @shashankkumar1633 ปีที่แล้ว

    very nice explaination

  • @yousufazad6914
    @yousufazad6914 10 หลายเดือนก่อน

    Good video

  • @mohdasadghazi1997
    @mohdasadghazi1997 13 วันที่ผ่านมา

    One question what will happen lets say if we merge that blue branch in main branch later on after cherry pick , as new commit id is being given to them for those cherry picks commits , it will not create problem right?

  • @sim_scape
    @sim_scape ปีที่แล้ว

    Thank you so much

  • @naktaal
    @naktaal ปีที่แล้ว

    Do you think you could make a video where you explain cherry-picking merge commits?

    • @themoderncoder
      @themoderncoder  ปีที่แล้ว

      Should be the same workflow since merge commits are just a bundle of all the changes introduced by that particular branch.

  • @emilmathew2257
    @emilmathew2257 ปีที่แล้ว

    Awesome video!!

  • @thenujansandramohan8930
    @thenujansandramohan8930 2 ปีที่แล้ว +2

    Underrated video

  • @RichFinelli
    @RichFinelli 9 หลายเดือนก่อน

    At the end when you demo'd multiple commits being cherry picked, the more recent commit was listed first. If the recent commit built on top of the earlier commit, would it make sense to order them by earlier commit first and recent commit second when doing git cherry pick? I.e. git cherry-pick

    • @themoderncoder
      @themoderncoder  9 หลายเดือนก่อน

      Yes! If you're picking multiple I'd keep the same order as they originally were. Sorry - I didn't realize I did them out of order in the video. Good catch.

  • @p.a8750
    @p.a8750 ปีที่แล้ว

    Great video. Quick question - your example shows cherry picking into main. Can we use cherry pick to go from one branch to another (non main) branch?

  • @imprince95
    @imprince95 ปีที่แล้ว +1

    Very informative, but I have a question, what if we cherry pick a commit that has changes related to a piece of code that was introduced in a commit that we haven't cherry picked, what would happen then? Thanks a lot.

    • @themoderncoder
      @themoderncoder  ปีที่แล้ว

      You’d get a conflict. The cherry pick operation will pause and notify you that it found incompatible changes. You can then choose to fix it or abort the cherry pick. I go over that workflow here if you’ve got time for another video: th-cam.com/video/aUeNbpSkY8k/w-d-xo.htmlsi=XY4HdGpHM6_QSU1S

    • @imprince95
      @imprince95 ปีที่แล้ว

      @@themoderncoder Oh I see, will definitely check it out, thanks.

  • @RahulPalivela-e9l
    @RahulPalivela-e9l ปีที่แล้ว

    thanks man

  • @misnad
    @misnad 7 หลายเดือนก่อน

    Great, btw, what font is that?

    • @themoderncoder
      @themoderncoder  7 หลายเดือนก่อน +1

      Iosevka!

    • @misnad
      @misnad 7 หลายเดือนก่อน

      @@themoderncoder Thanks.

  • @MalwareAttacker-nc4gx
    @MalwareAttacker-nc4gx ปีที่แล้ว

    Thank brother

  • @RecitoGigihPrasidha
    @RecitoGigihPrasidha ปีที่แล้ว

    but in vs code after i do the cherry pick why the changes is not detected? is it only me? or it's supposed to be like that?

  • @bartekz88
    @bartekz88 ปีที่แล้ว

    Will you have a conflict after doing git rebase nav?

    • @themoderncoder
      @themoderncoder  ปีที่แล้ว

      If you rebase nav against main AFTER the cherry pick, you won’t have a conflict because of the cherry picked commit. That said, it depends on what’s in the other commits on the nav branch, but the cherry picked commit won’t cause issues.

  • @haikalyusuf4058
    @haikalyusuf4058 2 ปีที่แล้ว

    Hey Jack, thanks for sharing about cherry-pick, I’ve actually been using it at work for the past month
    I’ve been meaning to ask, in this case, as the commit hashes are different, how would the resulting main branch look after merging the feature branch? I assume there would be 2 duplicate commits of the commits that were cherry-picked?

    • @themoderncoder
      @themoderncoder  2 ปีที่แล้ว +2

      That's correct. Cherry pick just applies the changes introduced by the commits - so you're essentially duplicating the commits you've cherry picked. The example I gave in the video about a bug fix commit is deliberate, because that's one common situation where cherry pick is useful; however, most of the time you'll probably find merge or rebase a better tool to apply changes across branches.

  • @tzuuyaolee9402
    @tzuuyaolee9402 ปีที่แล้ว

    hello Jack, thx for your tutorial.. q: after cherry-pciked, it will be "merged" to the target branch? (or cherry-pick is a temporary solution for me to continue work on a project?)

    • @themoderncoder
      @themoderncoder  ปีที่แล้ว +1

      You can think of stashes like setting aside your staging area. So unlike branches that can be merged, or commits that can be rebased, stashes aren't anchored to anything so when you say stashes are "merged" they're really just merged into staging area. This means when you pop out stashes there can be conflicts, but that's not quite the same type of conflict as a traditional merge conflict - this video might clear some of that up: th-cam.com/video/zC4DelBr_Fg/w-d-xo.html

  • @javascript_developer
    @javascript_developer ปีที่แล้ว

    Awesome

  • @kanishka_malviya
    @kanishka_malviya ปีที่แล้ว +7

    Too simple to not understand :)

  • @KamelJabber1
    @KamelJabber1 10 หลายเดือนก่อน

    Seems too simple when you put it this way