Learn Git Squash in 3 minutes // explained with live animations!

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

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

  • @sheikh1906
    @sheikh1906 Год назад +26

    I've been a dev for 15 years, and I've never used squash. Thanks for the tutorial!

  • @marcel5235
    @marcel5235 5 лет назад +122

    you were my lifesaver at my first week in my first dev job.

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

      saaaame

    • @marinaramarcato7615
      @marinaramarcato7615 4 года назад +7

      This is the second time I come back to this video. You saved me again, I almost had another heart attack! I must get better at this for my heart's sake xD

    • @SaifUlIslam-di5xv
      @SaifUlIslam-di5xv 3 года назад

      Same!

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

      @Marcel Hello, how's your progress with dev job? and development general?

  • @joesilva-rodriguez9
    @joesilva-rodriguez9 4 года назад +35

    Love how you don't skip out on the VIM commands.

  • @bolonabolona
    @bolonabolona 4 года назад +38

    Great video!!. Just a note for newbies like me, @1:30 "Accessibility bug fix" is not the latest commit. @2:11 Jack is sqaushing the newer/latest commits (Number 2 & 3) into an older commit "Accessibility bug fix" (Number 1).

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

    I used to have a headache when try to clean the commit but your vids make it soo much clearer

  • @blairnicolle2218
    @blairnicolle2218 Год назад +11

    Terrific short video. Clear animation. Clear narrative. Great job!

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

      It was the best video out there. Simply awesome.

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

    Having the 'timeline and branch' displayed at the same time you are showing command line interactions is awesome. I am no longer lost!

  • @vishuboydreams
    @vishuboydreams 6 лет назад +61

    your work is cleaner and concise and actually practical and related to work. thanks for creating practical tuts. hoping to see some more stuuff from you. peace out.

    • @themoderncoder
      @themoderncoder  6 лет назад

      Thanks Vishal, I'm hoping to get back to posting videos very soon

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

      @@themoderncoder ya agree, I do like the animation works in video

  • @SethBowers-lc8cg
    @SethBowers-lc8cg 3 месяца назад

    Every tech tutorial should have this exact level of detail and conciseness. Bravo!

  • @matk2283
    @matk2283 9 месяцев назад +1

    Never used git squash. heard about it. you make it so simple. always thought how can I combine my commits. and here it is "git squash". splendid short clip on "git squash" that made my life much easier.
    GRATITUDE !!!!!!!!!!!!!!!!!!!!!!!!
    Mathew. K from Colorado

  • @terryone4768
    @terryone4768 2 года назад +52

    I think it was important to mention that if you want to push your modification in a repo, you must use force push.

  • @arsnakehert
    @arsnakehert 2 года назад +1

    Thank you for keeping it short and not making a 10 minute video out of this to please the gods
    And thank you for the clear explanation, too

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

    I was a dev for over a decade. And it's only now that I'm a software manager that I actually had to learn how to squash my commits. LOL Thanks for the tutorial.

    • @themoderncoder
      @themoderncoder  11 месяцев назад +1

      Nice - that was my career progression too: from SDE to dev manager. Glad I could help.

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

    0:41 example demo
    1:20 git rebase -i HEAD~3
    1:56 squash
    2:05 meaning: going to take the last 2 commits and melt them into the first commit
    3:04

    • @mazedar_tv
      @mazedar_tv 2 года назад +1

      In case u want create PR then also needs to do git push -f

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

    Really liked how clean the video was

  • @adityatyagi4240
    @adityatyagi4240 4 года назад +5

    Cannot thank you enough for all the efforts and time you are investing. One of the best programming tutorials.
    Cheers!

  • @TheCaysed
    @TheCaysed 10 месяцев назад

    Nice job! Finally I've founded understandable tutorials for git workflow.

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

    Mate you are spot on the topic! so many other tutorial on your tube make confuse with other stuff! I liked the way you explained! I know now how to Squash! Thank you

  • @gregorytippett9692
    @gregorytippett9692 5 лет назад

    Extremely clear, focused, well produced and easy to follow. Nice work. Great kitchen too!

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

    wow, that was the most comprehensive squash tutorial I have seen, made my life a lot easier, liked and sub'd. Thank you so much!

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

      That’s awesome, glad it helped - and thanks for the comment. It’s motivating me to make more videos!

  • @themoderncoder
    @themoderncoder  5 лет назад +1

    Thanks to your feedback on this video and my rebasing video (ruclips.net/video/f1wnYdLEpgI/видео.html ), I created another video in the same style that goes in depth about other ways you can manipulate git history - including amending, rewording, deleting, reordering and splitting commits - ruclips.net/video/ElRzTuYln0M/видео.html. Check it out if you enjoyed this video, I think you'll find a lot of value there!

    • @Chiramisudo
      @Chiramisudo 5 лет назад

      First link is broken. :(

    • @themoderncoder
      @themoderncoder  5 лет назад

      @@Chiramisudo Fixed. Thanks for pointing that out

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

    best squash video on youtube. thank you very much! the graph combine with the command line is a true life saver!

  • @kylebennett3038
    @kylebennett3038 4 года назад +4

    This was a great combo of code and visuals (that update the same time as the code)! Keep up the good work and teach a master class on this!

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

    The best and simple explanation of squash !! Congrats.

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

    Best explanation and example of this feature that I have seen. Excellent

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

    Love how you explain stuff. The production value of your videos is fantastic!

  • @tobyzieglerrr
    @tobyzieglerrr 4 месяца назад

    Best one i found on this subject, love the animation and presentation!
    Great, Thx!

  • @carcass09
    @carcass09 2 года назад +1

    Just a tip about all your videos: when trying to help people with vim, saying 'ESC : W Q' and printing these uppercase characters on screen could confuse some people as it is necessary that they are lowercase!

  • @haseebshahid3581
    @haseebshahid3581 5 лет назад +10

    This is great explanation. REBASE VS MERGE are the horror stories of software engineers.

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

    Thanks you for explaining each and every step and not just assuming I know how to use vim like other tutorials seem to do. Even though I do, it really helps to be able to follow exactly what you are doing.

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

    You have the skills to teach! Please continue doing it.. waiting for some more vids from you!

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

      Thank you for the nice comment. I’ve been quite busy at work for the past year but hoping to get back at it

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

      @@themoderncoder Hope to see you back soon!

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

    Excellent one and upto the point. I was looking for squashing my commits and this helped. Thanks!

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

    I really liked this guys way of explaining. You just earned a subscriber pal.

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

    I need this type of explanation. On point 💯no unnecessay info. Thank you!!

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

    An extremely lucid explanation. Bravo.

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

    Your Git tutorials are just neat and simple. Thanks for the effort! Quite useful.

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

      Appreciate the encouragement - they tend to take a lot of time to make but I really do think they're the best.

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

    I liked how you got rid of the messages of the old commits by commenting them out. I typically delete them.

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

      Yeah. If your squashing a lot of tiny commits that are part of a larger feature you can generally get away with summarizing them all with a single commit message.

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

    Thanks a lot, that was exactly what i need. I do desktop apps (with native GUI frameworks) and need to always test on all platforms and i'm using git as a file sync tool, so i have lots of commits.in my branch just for that purpose. Now i need a to write a little script that will automatically squash all empty commit messages into the last one with a message. Nice.

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

    I like that he is talking about squash in the kitchen. :-)

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

    Dude, thank you. That was so helpful. I've had a super hard time finding good info on this. Definitely subscribing.

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

    Thank you for posting this video, very well explained and clear, you definitely saved my life trying to do my first squash on git bash.

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

    You are the Absolute Best!! I am gonna watch all your videos, Top stuff!!!!

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

    You explanations are neat, clear and well presented. Great job! Thank you!

  • @sportzone_
    @sportzone_ 21 день назад

    Very short and effective. Thank you !

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

    best explanation on the Internet! Thank you

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

    Thanks for this. Will definitely help me clean up the work I contribute to shared repos.

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

    Exactly what I was looking for. Thanks for wonderful explanation.

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

    This is how Git tutorials should be done. Show exactly how the tree looks like at each step, so students can better understand what is going on

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

    aboslutely great vid - presentation AND content-wise!

  • @shashishekhar----
    @shashishekhar---- 2 года назад

    Really helpful video brother, thanks for sharing.

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

    Thank you for the clear and informative explanation.

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

    straight to the point, no bull shit. Love it.

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

    short and simple on point, really liked your video:)

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

    man, the explanation is really cool 🔥🔥🔥
    Thanks buddy!!

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

    Outstanding tutorials. Big thumbs up. Many thanks

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

    Wow, great production. Instant sub! 🙏🏻

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

    Thank you very much. Simple and easy explanation

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

    Thank you for all the informative videos you share with us ))

  • @jitenderchand656
    @jitenderchand656 6 лет назад +2

    understood squash completely thanks!!

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

    giving a like before the video starts, so I don't accidentally forget

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

    Great explanation for this helpful tool. Thanks!!

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

    It's a nice explanation with visuals.

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

    Excellent presentation!

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

    Awesome ❤❤ Need more advanced git tutorials like this.

  • @csdias2004
    @csdias2004 10 месяцев назад

    You are a great communicator.

  • @privatejoker86
    @privatejoker86 2 года назад +1

    Really great content, thanks for making it right to the point.

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

    Thanks I never understood why second file was opening. Thanks alot

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

    Good video with nice details. I like the visual explanation in git and the commands used in VIM (always hated that)

  • @wayne_taylor
    @wayne_taylor 9 месяцев назад

    Awesome video! Well explained. Subbed!

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

    I love it! Really simple and to the point!

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

    Thanks, very usefull, my pains were saved

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

    Thank you for these awesome tutorials!!

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

    Very clear explanation! Thanks!

  • @sy-hungdoan4859
    @sy-hungdoan4859 4 года назад

    What he did in this video can be achieved by using "fixup" instead of "squash", it's like squash, but discards the commit messages of the squashed commits :D

  • @АндрейСмольков
    @АндрейСмольков 4 года назад

    Great stuff, man! Maximum info in a short piece of time!

  • @hasanka7824
    @hasanka7824 6 лет назад +1

    awesome video, nicely explains everything.

  • @RobertoBarcenas
    @RobertoBarcenas 5 лет назад

    This one was pretty nice... Fast and clean

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

    This is very nice explanation it helped me a lot ♥ ♥

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

    One git command explanation video that works :)

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

    Thank you so much, this video helped me alot. Many thanks!

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

    To the point. short concise and useful. Thanks :)

  • @SatyamSingh-vq4wy
    @SatyamSingh-vq4wy 4 года назад

    great explanation. Subscribed!

  • @warrickcorfe-tan759
    @warrickcorfe-tan759 5 лет назад

    Super succinct and clear. Nice vid

  • @slavoie
    @slavoie 5 лет назад +3

    Great content, thanks! Just be careful with Vim commands: they are case-sensitive. `:WQ` doesn't work in Vim, but `:wq` does. On doing the same thing, `ZZ` save and quit but `zz` centers the currently selected line on the screen. Similarly, `i` inserts at the current position, but `I` (uppercase i) inserts before the first character on the line. So it is worth it to show the correct mappings on the screen. Apart from that, it's fantastic info presented in a very approachable way. Keep on!

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

      Also, instead of i to enter insert mode, he should have just used cw to change the word. Then he could have used a period to repeat the change across all the other lines.

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

    Thanks, man this is life saving.

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

    Thank you for making my day!

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

    That was super simple and understandable, thanks a lot :-)

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

    Excellent lesson! Thanks so much.

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

    Great video!! The kitchen could be your unique thing. Mixing in some cooking puns too. :-)

  • @rahultarkar5164
    @rahultarkar5164 5 лет назад

    Thanks, this makes the work pretty easy.

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

    Nice and simple. Perfect.

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

    Nice explanation!

  • @paulmcloughlin5633
    @paulmcloughlin5633 6 лет назад

    Great tutorial, keep up the videos!

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

    THIS WAS A VERY GOOD VIDEO

  • @HaiderAli-vm3yu
    @HaiderAli-vm3yu 2 года назад

    Thanks, It was really helpful.

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

    Loved this 💙

  • @sergeymurtazin1416
    @sergeymurtazin1416 6 лет назад +1

    Thanks man!
    This video helpes me too!

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

    What if we want to rename the commit message at 2:51 "Accessibility fix for homepage" can we just modify that commit message?

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

    Thank you very much, clear explanation!

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

    This is GOLD!