Тёмный

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

The Modern Coder
Подписаться 33 тыс.
Просмотров 303 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 278   
@sheikh1906
@sheikh1906 Год назад
I've been a dev for 15 years, and I've never used squash. Thanks for the tutorial!
@marcel5235
@marcel5235 4 года назад
you were my lifesaver at my first week in my first dev job.
@hiyadmn9damy
@hiyadmn9damy 4 года назад
saaaame
@marinaramarcato7615
@marinaramarcato7615 3 года назад
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 3 года назад
Love how you don't skip out on the VIM commands.
@bolonabolona
@bolonabolona 3 года назад
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
@blairnicolle2218
@blairnicolle2218 Год назад
Terrific short video. Clear animation. Clear narrative. Great job!
@fragsman
@fragsman Год назад
It was the best video out there. Simply awesome.
@irfanfauzi8704
@irfanfauzi8704 10 месяцев назад
I used to have a headache when try to clean the commit but your vids make it soo much clearer
@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 5 лет назад
Thanks Vishal, I'm hoping to get back to posting videos very soon
@mazedar_tv
@mazedar_tv Год назад
@@themoderncoder ya agree, I do like the animation works in video
@matk2283
@matk2283 6 месяцев назад
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 года назад
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 Год назад
thanks!
@andresalvarez7303
@andresalvarez7303 Год назад
Was just wonderin that part lol
@Shakib.Siddiqui
@Shakib.Siddiqui 2 месяца назад
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
@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!
@tobyzieglerrr
@tobyzieglerrr 18 дней назад
Best one i found on this subject, love the animation and presentation! Great, Thx!
@kaustubhtrivedi5403
@kaustubhtrivedi5403 4 года назад
Really liked how clean the video was
@adityatyagi4240
@adityatyagi4240 4 года назад
Cannot thank you enough for all the efforts and time you are investing. One of the best programming tutorials. Cheers!
@TheCaysed
@TheCaysed 6 месяцев назад
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
@shangshi6286
@shangshi6286 3 года назад
best squash video on youtube. thank you very much! the graph combine with the command line is a true life saver!
@mrvn1243
@mrvn1243 3 года назад
Best explanation and example of this feature that I have seen. Excellent
@nikhil182
@nikhil182 2 года назад
I need this type of explanation. On point 💯no unnecessay info. Thank you!!
@tablamihai
@tablamihai 4 года назад
The best and simple explanation of squash !! Congrats.
@Hendrixski
@Hendrixski 8 месяцев назад
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 8 месяцев назад
Nice - that was my career progression too: from SDE to dev manager. Glad I could help.
@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!
@k4f
@k4f 3 года назад
Love how you explain stuff. The production value of your videos is fantastic!
@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.
@stephentrewick1383
@stephentrewick1383 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.
@stephenwood4814
@stephenwood4814 Год назад
An extremely lucid explanation. Bravo.
@csdias2004
@csdias2004 6 месяцев назад
You are a great communicator.
@amitrastogi1405
@amitrastogi1405 8 месяцев назад
Excellent one and upto the point. I was looking for squashing my commits and this helped. Thanks!
@haseebshahid3581
@haseebshahid3581 5 лет назад
This is great explanation. REBASE VS MERGE are the horror stories of software engineers.
@yugabro
@yugabro 4 года назад
I really liked this guys way of explaining. You just earned a subscriber pal.
@nmaajidkhan
@nmaajidkhan 3 года назад
You are the Absolute Best!! I am gonna watch all your videos, Top stuff!!!!
@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.
@OgnyanDimitrov
@OgnyanDimitrov 4 года назад
You explanations are neat, clear and well presented. Great job! Thank you!
@masoudvarzi4292
@masoudvarzi4292 Год назад
short , brief and useful
@dennisjohn2115
@dennisjohn2115 4 года назад
best explanation on the Internet! Thank you
@bilonjea
@bilonjea 8 месяцев назад
Thanks, very usefull, my pains were saved
@shashishekhar----
@shashishekhar---- Год назад
Really helpful video brother, thanks for sharing.
@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!
@cocosnow6795
@cocosnow6795 2 года назад
One git command explanation video that works :)
@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.
@jitenderchand656
@jitenderchand656 6 лет назад
understood squash completely thanks!!
@alexmstudio
@alexmstudio Год назад
Excellent presentation!
@themoderncoder
@themoderncoder 5 лет назад
Thanks to your feedback on this video and my rebasing video (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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
@khakr01
@khakr01 Год назад
Exactly what I was looking for. Thanks for wonderful explanation.
@dawid_dahl
@dawid_dahl 2 года назад
Wow, great production. Instant sub! 🙏🏻
@themoderncoder
@themoderncoder Год назад
Thanks for the sub!
@marielaband4208
@marielaband4208 3 года назад
Dude, thank you. That was so helpful. I've had a super hard time finding good info on this. Definitely subscribing.
@nikhiljugdan724
@nikhiljugdan724 3 года назад
Thank you very much. Simple and easy explanation
@nicknguyen1679
@nicknguyen1679 Год назад
straight to the point, no bull shit. Love it.
@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
@userariii
@userariii Год назад
man, the explanation is really cool 🔥🔥🔥 Thanks buddy!!
@SteveFullerBikes
@SteveFullerBikes 4 года назад
Thanks for this. Will definitely help me clean up the work I contribute to shared repos.
@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 Год назад
In case u want create PR then also needs to do git push -f
@realB12
@realB12 4 года назад
aboslutely great vid - presentation AND content-wise!
@hungdang8059
@hungdang8059 2 года назад
Thank you so much, this video helped me alot. Many thanks!
@raghuballu6953
@raghuballu6953 Год назад
This is very nice explanation it helped me a lot ♥ ♥
@nunomaster
@nunomaster 3 года назад
Good video with nice details. I like the visual explanation in git and the commands used in VIM (always hated that)
@abhilashpatel3036
@abhilashpatel3036 4 года назад
Thanks I never understood why second file was opening. Thanks alot
@HeduAI
@HeduAI 3 года назад
Thank you for these awesome tutorials!!
@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)
@tkopec125
@tkopec125 4 года назад
Outstanding tutorials. Big thumbs up. Many thanks
@vijais5692
@vijais5692 4 года назад
Awesome ❤❤ Need more advanced git tutorials like this.
@tubingforever
@tubingforever 3 года назад
This is GOLD!
@wayne_taylor
@wayne_taylor 6 месяцев назад
Awesome video! Well explained. Subbed!
@sreeharshamandlem7130
@sreeharshamandlem7130 4 года назад
It's a nice explanation with visuals.
@florinbujoreanu1020
@florinbujoreanu1020 Год назад
giving a like before the video starts, so I don't accidentally forget
@privatejoker86
@privatejoker86 Год назад
Really great content, thanks for making it right to the point.
@tdias25
@tdias25 4 года назад
just found out your channel, i love these clear and objective explanations. +1 this week i dealt with some uncomfortable situation , i just pushed a branch that i created whose original parent was a wrong branch, and it went with all the wrong's branch commit history and i didn't knew how to solve that, what would you do?
@thelifeofsarath
@thelifeofsarath 2 года назад
Very clear explanation! Thanks!
@anasshl
@anasshl 4 года назад
Thank you for all the informative videos you share with us ))
@JairoEstebanM
@JairoEstebanM 3 года назад
Great explanation for this helpful tool. Thanks!!
@rahulramshreychauhan2751
@rahulramshreychauhan2751 2 года назад
short and simple on point, really liked your video:)
@twister222333
@twister222333 Год назад
thanks! always tricky to do stuff on git
@singerabantika2044
@singerabantika2044 3 года назад
Loved this 💙
@swapnilchhatre5845
@swapnilchhatre5845 4 года назад
To the point. short concise and useful. Thanks :)
@RobertoBarcenas
@RobertoBarcenas 4 года назад
This one was pretty nice... Fast and clean
@irfandyjip3246
@irfandyjip3246 4 года назад
I love it! Really simple and to the point!
@HaiderAli-vm3yu
@HaiderAli-vm3yu Год назад
Thanks, It was really helpful.
@hasanka7824
@hasanka7824 5 лет назад
awesome video, nicely explains everything.
@dmitryboltachev9522
@dmitryboltachev9522 4 года назад
Nice explanation!
@rattle_
@rattle_ 4 года назад
Nice and simple. Perfect.
@bhavithc7624
@bhavithc7624 3 года назад
Thanks for this tutorial. Can I know which software you used for editing videos. It’s awesome to watch
@evgeniipoperezhay2342
@evgeniipoperezhay2342 3 года назад
Thank you for making my day!
@imcrazyru1
@imcrazyru1 4 года назад
Excellent lesson! Thanks so much.
@SupreetSinghsuppi
@SupreetSinghsuppi 3 года назад
THIS WAS A VERY GOOD VIDEO
@anubhavsharma1335
@anubhavsharma1335 3 года назад
Thanks, man this is life saving.
@lucamaletti8958
@lucamaletti8958 3 года назад
Thank you very much, clear explanation!
@warrickcorfe-tan759
@warrickcorfe-tan759 5 лет назад
Super succinct and clear. Nice vid
@harika1022
@harika1022 Год назад
It helped me a lot!!
@АндрейСмольков
@АндрейСмольков 4 года назад
Great stuff, man! Maximum info in a short piece of time!
@rahultarkar5164
@rahultarkar5164 4 года назад
Thanks, this makes the work pretty easy.
@SatyamSingh-vq4wy
@SatyamSingh-vq4wy 4 года назад
great explanation. Subscribed!
@noone_and_nobody
@noone_and_nobody 2 года назад
Neat and sweet! Thanks much!
@lalasparkles
@lalasparkles 3 года назад
it worked. I am happy :)
@nikhilbhanvadiya1933
@nikhilbhanvadiya1933 Год назад
good explanation 👌
@meanmole3212
@meanmole3212 5 лет назад
Nice video and well explained. You could have showed us the output of "git log" before and after the operation, but your visualizations do the same job so it's cool. Are the separate commits recoverable after the squash operation or are they lost forever?
@themoderncoder
@themoderncoder 5 лет назад
That's a good suggestion. I should have shown both the logs side-by-side. As for recovering commits after squashing, it is possible by using Git's reference logs. I'm not familiar with the process but this article might help: www.atlassian.com/git/tutorials/rewriting-history/git-reflog
@JKhalaf
@JKhalaf 5 лет назад
Thank you, this helped me. I didn't know what I was supposed to do when updating the commit message, I was thinking of deleting everything included the commented out lines, but you showed me that there was no need, once you save with the new message, git throws out anything with a # in front.
@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
@blckwaterpark
@blckwaterpark 2 года назад
Very helpful, thank you
Далее
Git MERGE vs REBASE: The Definitive Guide
9:39
Просмотров 114 тыс.
How To Squash Your Git History Like A Pro
13:09
Просмотров 54 тыс.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Git CHERRY PICK Tutorial
4:42
Просмотров 114 тыс.
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,1 млн
Git MERGE vs REBASE
16:12
Просмотров 1 млн
Git Rebase --interactive: EXPLAINED
4:54
Просмотров 11 тыс.
Git STASH Explained in Simple Words
9:45
Просмотров 125 тыс.