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

  Рет қаралды 313,662

The Modern Coder

The Modern Coder

Күн бұрын

Пікірлер: 281
@sheikh1906
@sheikh1906 Жыл бұрын
I've been a dev for 15 years, and I've never used squash. Thanks for the tutorial!
@marcel5235
@marcel5235 5 жыл бұрын
you were my lifesaver at my first week in my first dev job.
@hiyadmn9damy
@hiyadmn9damy 4 жыл бұрын
saaaame
@marinaramarcato7615
@marinaramarcato7615 4 жыл бұрын
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?
@bolonabolona
@bolonabolona 4 жыл бұрын
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).
@AbhishekKumar-sf6no
@AbhishekKumar-sf6no 2 жыл бұрын
Yes rightly pointed out
@joesilva-rodriguez9
@joesilva-rodriguez9 4 жыл бұрын
Love how you don't skip out on the VIM commands.
@irfanfauzi8704
@irfanfauzi8704 Жыл бұрын
I used to have a headache when try to clean the commit but your vids make it soo much clearer
@matk2283
@matk2283 9 ай бұрын
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
@blairnicolle2218
@blairnicolle2218 Жыл бұрын
Terrific short video. Clear animation. Clear narrative. Great job!
@fragsman
@fragsman Жыл бұрын
It was the best video out there. Simply awesome.
@SethBowers-lc8cg
@SethBowers-lc8cg 3 ай бұрын
Every tech tutorial should have this exact level of detail and conciseness. Bravo!
@AnthonyJackman
@AnthonyJackman 3 жыл бұрын
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 жыл бұрын
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
@terryone4768
@terryone4768 2 жыл бұрын
I think it was important to mention that if you want to push your modification in a repo, you must use force push.
@majorgear1021
@majorgear1021 2 жыл бұрын
details, details!
@dorianjames1280
@dorianjames1280 2 жыл бұрын
thanks!
@andresalvarez7303
@andresalvarez7303 Жыл бұрын
Was just wonderin that part lol
@Shakib.Siddiqui
@Shakib.Siddiqui 5 ай бұрын
Thanks man..........for this comment
@arsnakehert
@arsnakehert 2 жыл бұрын
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
@sheerun
@sheerun 4 жыл бұрын
You can use tool I've written for squashing all commits on a branch: github.com/sheerun/git-squash (just like GitHub's squash and merge)
@TheCaysed
@TheCaysed 10 ай бұрын
Nice job! Finally I've founded understandable tutorials for git workflow.
@kaustubhtrivedi5403
@kaustubhtrivedi5403 4 жыл бұрын
Really liked how clean the video was
@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 ай бұрын
Nice - that was my career progression too: from SDE to dev manager. Glad I could help.
@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
@adityatyagi4240
@adityatyagi4240 4 жыл бұрын
Cannot thank you enough for all the efforts and time you are investing. One of the best programming tutorials. Cheers!
@themoderncoder
@themoderncoder 5 жыл бұрын
Thanks to your feedback on this video and my rebasing video (kzbin.info/www/bejne/nGLan4yagaqjnas ), 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 - kzbin.info/www/bejne/e521q4erjtGhZq8. 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 жыл бұрын
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!
@mrvn1243
@mrvn1243 3 жыл бұрын
Best explanation and example of this feature that I have seen. Excellent
@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!
@gregorytippett9692
@gregorytippett9692 5 жыл бұрын
Extremely clear, focused, well produced and easy to follow. Nice work. Great kitchen too!
@ruixue6955
@ruixue6955 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 жыл бұрын
In case u want create PR then also needs to do git push -f
@tobyzieglerrr
@tobyzieglerrr 3 ай бұрын
Best one i found on this subject, love the animation and presentation! Great, Thx!
@tablamihai
@tablamihai 4 жыл бұрын
The best and simple explanation of squash !! Congrats.
@carcass09
@carcass09 2 жыл бұрын
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!
@nikhil182
@nikhil182 2 жыл бұрын
I need this type of explanation. On point 💯no unnecessay info. Thank you!!
@k4f
@k4f 4 жыл бұрын
Love how you explain stuff. The production value of your videos is fantastic!
@sportzone_
@sportzone_ 12 күн бұрын
Very short and effective. Thank you !
@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.
@amitrastogi1405
@amitrastogi1405 Жыл бұрын
Excellent one and upto the point. I was looking for squashing my commits and this helped. Thanks!
@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.
@haseebshahid3581
@haseebshahid3581 5 жыл бұрын
This is great explanation. REBASE VS MERGE are the horror stories of software engineers.
@joeygarcia7826
@joeygarcia7826 3 жыл бұрын
I like that he is talking about squash in the kitchen. :-)
@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
@divyanshubhatnagar4601
@divyanshubhatnagar4601 4 жыл бұрын
You have the skills to teach! Please continue doing it.. waiting for some more vids from you!
@themoderncoder
@themoderncoder 4 жыл бұрын
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!
@stephenwood4814
@stephenwood4814 Жыл бұрын
An extremely lucid explanation. Bravo.
@yugabro
@yugabro 4 жыл бұрын
I really liked this guys way of explaining. You just earned a subscriber pal.
@ArduinoHocam
@ArduinoHocam Жыл бұрын
Your Git tutorials are just neat and simple. Thanks for the effort! Quite useful.
@themoderncoder
@themoderncoder Жыл бұрын
Appreciate the encouragement - they tend to take a lot of time to make but I really do think they're the best.
@dennisjohn2115
@dennisjohn2115 4 жыл бұрын
best explanation on the Internet! Thank you
@nmaajidkhan
@nmaajidkhan 4 жыл бұрын
You are the Absolute Best!! I am gonna watch all your videos, Top stuff!!!!
@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.
@nicknguyen1679
@nicknguyen1679 Жыл бұрын
straight to the point, no bull shit. Love it.
@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.
@userariii
@userariii Жыл бұрын
man, the explanation is really cool 🔥🔥🔥 Thanks buddy!!
@shashishekhar----
@shashishekhar---- 2 жыл бұрын
Really helpful video brother, thanks for sharing.
@marielaband4208
@marielaband4208 4 жыл бұрын
Dude, thank you. That was so helpful. I've had a super hard time finding good info on this. Definitely subscribing.
@csdias2004
@csdias2004 10 ай бұрын
You are a great communicator.
@OgnyanDimitrov
@OgnyanDimitrov 4 жыл бұрын
You explanations are neat, clear and well presented. Great job! 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.
@alexmstudio
@alexmstudio 2 жыл бұрын
Excellent presentation!
@realB12
@realB12 4 жыл бұрын
aboslutely great vid - presentation AND content-wise!
@arbi2fr
@arbi2fr Жыл бұрын
Thank you for the clear and informative explanation.
@bilonjea
@bilonjea Жыл бұрын
Thanks, very usefull, my pains were saved
@jitenderchand656
@jitenderchand656 6 жыл бұрын
understood squash completely thanks!!
@sreeharshamandlem7130
@sreeharshamandlem7130 4 жыл бұрын
It's a nice explanation with visuals.
@rahulramshreychauhan2751
@rahulramshreychauhan2751 2 жыл бұрын
short and simple on point, really liked your video:)
@dawid_dahl
@dawid_dahl 2 жыл бұрын
Wow, great production. Instant sub! 🙏🏻
@themoderncoder
@themoderncoder 2 жыл бұрын
Thanks for the sub!
@florinbujoreanu1020
@florinbujoreanu1020 Жыл бұрын
giving a like before the video starts, so I don't accidentally forget
@anasshl
@anasshl 4 жыл бұрын
Thank you for all the informative videos you share with us ))
@tkopec125
@tkopec125 4 жыл бұрын
Outstanding tutorials. Big thumbs up. Many thanks
@nunomaster
@nunomaster 3 жыл бұрын
Good video with nice details. I like the visual explanation in git and the commands used in VIM (always hated that)
@HeduAI
@HeduAI 3 жыл бұрын
Thank you for these awesome tutorials!!
@nikhiljugdan724
@nikhiljugdan724 3 жыл бұрын
Thank you very much. Simple and easy explanation
@vijais5692
@vijais5692 4 жыл бұрын
Awesome ❤❤ Need more advanced git tutorials like this.
@wayne_taylor
@wayne_taylor 9 ай бұрын
Awesome video! Well explained. Subbed!
@JairoEstebanM
@JairoEstebanM 3 жыл бұрын
Great explanation for this helpful tool. Thanks!!
@thelifeofsarath
@thelifeofsarath 2 жыл бұрын
Very clear explanation! Thanks!
@raghuballu6953
@raghuballu6953 Жыл бұрын
This is very nice explanation it helped me a lot ♥ ♥
@privatejoker86
@privatejoker86 2 жыл бұрын
Really great content, thanks for making it right to the point.
@irfandyjip3246
@irfandyjip3246 4 жыл бұрын
I love it! Really simple and to the point!
@masoudvarzi4292
@masoudvarzi4292 2 жыл бұрын
short , brief and useful
@hungdang8059
@hungdang8059 2 жыл бұрын
Thank you so much, this video helped me alot. Many thanks!
@abhilashpatel3036
@abhilashpatel3036 4 жыл бұрын
Thanks I never understood why second file was opening. Thanks alot
@anubhavsharma1335
@anubhavsharma1335 3 жыл бұрын
Thanks, man this is life saving.
@RobertoBarcenas
@RobertoBarcenas 5 жыл бұрын
This one was pretty nice... Fast and clean
@evgeniipoperezhay2342
@evgeniipoperezhay2342 4 жыл бұрын
Thank you for making my day!
@singerabantika2044
@singerabantika2044 3 жыл бұрын
Loved this 💙
@warrickcorfe-tan759
@warrickcorfe-tan759 5 жыл бұрын
Super succinct and clear. Nice vid
@swapnilchhatre5845
@swapnilchhatre5845 4 жыл бұрын
To the point. short concise and useful. Thanks :)
@cocosnow6795
@cocosnow6795 2 жыл бұрын
One git command explanation video that works :)
@rattle_
@rattle_ 4 жыл бұрын
Nice and simple. Perfect.
@hasanka7824
@hasanka7824 6 жыл бұрын
awesome video, nicely explains everything.
@dmitryboltachev9522
@dmitryboltachev9522 4 жыл бұрын
Nice explanation!
@twister222333
@twister222333 Жыл бұрын
thanks! always tricky to do stuff on git
@imcrazyru1
@imcrazyru1 4 жыл бұрын
Excellent lesson! Thanks so much.
@SupreetSinghsuppi
@SupreetSinghsuppi 3 жыл бұрын
THIS WAS A VERY GOOD VIDEO
@slavoie
@slavoie 5 жыл бұрын
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.
@tubingforever
@tubingforever 3 жыл бұрын
This is GOLD!
@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!
@SatyamSingh-vq4wy
@SatyamSingh-vq4wy 4 жыл бұрын
great explanation. Subscribed!
@HaiderAli-vm3yu
@HaiderAli-vm3yu 2 жыл бұрын
Thanks, It was really helpful.
@rahultarkar5164
@rahultarkar5164 5 жыл бұрын
Thanks, this makes the work pretty easy.
@joeygarcia7826
@joeygarcia7826 3 жыл бұрын
Great video!! The kitchen could be your unique thing. Mixing in some cooking puns too. :-)
@Abhishek-dp5tc
@Abhishek-dp5tc 3 жыл бұрын
THAT WAS A GREAT VIDEO, THANKS A LOT
@harika1022
@harika1022 Жыл бұрын
It helped me a lot!!
Learn Git Rebase in 6 minutes // explained with live animations!
6:43
The Modern Coder
Рет қаралды 824 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
How To Squash Your Git History Like A Pro
13:09
Colt Steele
Рет қаралды 56 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН
Learn Git - The Full Course
4:20:00
Boot dev
Рет қаралды 123 М.
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 135 М.
Git Rebase --interactive: EXPLAINED
4:54
DevOps Toolbox
Рет қаралды 17 М.
Git MERGE vs REBASE
16:12
Academind
Рет қаралды 1 МЛН
Git MERGE vs REBASE: Everything You Need to Know
4:34
ByteByteGo
Рет қаралды 469 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 935 М.
Never* use git pull
4:02
Philomatics
Рет қаралды 602 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН