Learn how to rewrite Git history - Amend, Reword, Delete, Reorder, Squash and Split

In this video I'll dive into some of the ways Git allows us to rewrite commit history. Specifically I cover: amending commits, rewording commit messages, deleting commits, reordering commits, squashing commits and splitting commits.
FULL WRITEUP: www.themoderncoder.com/rewrit...
MORE GIT VIDEOS: • Git
CHAPTERS
0:00 Intro
0:40 Amending commits
2:04 Rewording commits
4:14 Deleting commits
5:34 Reordering commits
7:04 Squashing commits
9:09 Splitting commits
MY TECH
2020 M1 MacBook Air (I have the 512GB variant): amzn.to/3TTIBsE
AirPods Pro: amzn.to/3sRLUo5
Gaming headset: amzn.to/3zwbT8i
Headphones (newer model): amzn.to/3Ub5reT
Keyboard: amzn.to/3FOOOC7
Mouse: amzn.to/3WhMFV9
Monitor: www.dell.com/en-us/work/shop/...
Monitor arm (newer model): amzn.to/3gXnlUa
Webcam: amzn.to/3zxxwp0
TECH ACCESSORIES
Laptop stand: amzn.to/3NuyqZ5
Mouse pad/mat: amzn.to/3U9QFVO
KVM switch: amzn.to/3gZmpP0
PC case: amzn.to/3Fx4Hg5
Under desk drawer: amzn.to/3WloFAo
VIDEO GEAR
Camera: amzn.to/3WkbiRe
Lens: amzn.to/3zxiTC4
Microphone: amzn.to/3SSUoWE
Main key light: amzn.to/3WhZbny
Secondary light: amzn.to/3fpRefx
^ Note for the Amazon links above: as an Amazon Associate I earn from qualifying purchases.
ABOUT ME
I'm a professional software engineer working at Amazon in New York City. I enjoy making videos about the tech industry so if you have a question please get in touch either through the comments or any of my socials and I'd be happy to help out. Thanks for checking out the channel!
FOLLOW ME
Website: www.themoderncoder.com
Instagram: / themoderncoder
Twitter: / themoderncoder
Join the email list for tips curated to improve your dev skills delivered monthly to your inbox: www.themoderncoder.com/email-...

Пікірлер: 263

  • @themoderncoder
    @themoderncoder Жыл бұрын

    I HAVE MORE GIT VIDEOS! kzread.info/head/PLfU9XN7w4tFwKwh_xPSQ_X1-hROQEpHnM. Additionally, a written reference for this video is available on my blog: www.themoderncoder.com/git/

  • @tomng92
    @tomng923 жыл бұрын

    Pure gold! Learnt faster in those 12 mins than reading any book.

  • @RedFenceAnime
    @RedFenceAnime3 жыл бұрын

    put the timestamps before the topic in the description and KZread will automatically add chapters to the progress bar 0:00 - intro 0:40 - Amending commits 2:04 - Rewording commits 4:14 - Deleting commits 5:34 - Reordering commits 7:04 - Squashing commits 9:09 - Splitting commits The "0:00" is needed

  • @ozen8499

    @ozen8499

    Жыл бұрын

    thx

  • @themoderncoder

    @themoderncoder

    Жыл бұрын

    Good tip thanks. I went ahead and made those changes

  • @darkphoenix68
    @darkphoenix6815 күн бұрын

    I came to Git from SVN -- and the ability to modify history was probably the hardest thing to wrap my head around. Not only that it was possible, but that there were situations where it is actually desirable! Now ... well, I could not go back to SVN! 🙂

  • @losrobbosful
    @losrobbosful4 жыл бұрын

    This was gold, helped me a lot. Definitely great teaching abilities.

  • @nikolajovanovic1140
    @nikolajovanovic11404 жыл бұрын

    Concise and straight to the point. Bravo!

  • @rabishankar5993
    @rabishankar59933 жыл бұрын

    Hidden gems of youtube.

  • @786saga
    @786saga4 жыл бұрын

    Dude it really helped me a lot i was missing the few of these concepts of git thank you.

  • @zmark2274
    @zmark22743 жыл бұрын

    Can't express how thankful I am to you. So accurate and informative. Thank you indeed

  • @cddrury
    @cddrury4 жыл бұрын

    Great explanation and the graphical representation you used while typing the commands made it much easier to understand from a visual perspective. Keep up the good work!

  • @thesavagesalmon9464
    @thesavagesalmon94644 жыл бұрын

    This channel is COMPLETELY underrated. You deserve a tonne more subscribers. Keep consistently making quality videos such as this, and you will make it bigger in no time!

  • @AdamTheBen
    @AdamTheBen4 жыл бұрын

    Thank you very much for your content. Extremely helpful. Love the animations, they make it so easy to wrap your head around the concepts.

  • @codewithsub5083
    @codewithsub50834 жыл бұрын

    This is the best tutorial of git I have ever seen. Thanks man

  • @danielwestberg9540
    @danielwestberg95404 жыл бұрын

    Very well explained! Super good with the visual branches to better understand what's happening

  • @fahadmubeen6272
    @fahadmubeen62723 жыл бұрын

    Really like the video, and the written blog is good too. Clear, concise and to the point.

  • @die1234abc
    @die1234abc3 жыл бұрын

    Best explanatory video on all this subjects! Thanks and keep up the good work!

  • @peterdoyle1994
    @peterdoyle19943 жыл бұрын

    Best, clearest git tutorials by a country mile. Thanks.

  • @sebastianfarias5670
    @sebastianfarias56703 жыл бұрын

    Simply the best GIT explanation ever, super concise and really helped me get out of a pickle today !!! THANK YOU !

  • @pascualrosario8633
    @pascualrosario863311 ай бұрын

    You have a gift for teaching. Very concise and easy to understand.

  • @sumanghosh4439
    @sumanghosh44392 жыл бұрын

    Excellent! Thank you so much for this video. I have struggled with rebasing and was scared. But your teaching skill is excellent and I learnt in few minutes and used it successfully.

  • @najimali32
    @najimali322 жыл бұрын

    Your Git Videos are really helping me to play with my commits & branch at work. Thank you so much.

  • @Trhnetesiuz
    @Trhnetesiuz2 жыл бұрын

    3 hours of other videos in 13 minutes. Awesome. Thanks a lot

  • @d-e-v-esh
    @d-e-v-esh3 жыл бұрын

    This is the best video by far I have seen on KZread. Thank you so much man....

  • 5 жыл бұрын

    Omg did not know that is possible to reording commits. So darn simple! Thank you!

  • @zmark2274
    @zmark22743 жыл бұрын

    Over and over hank you again to express yourself in so clear way

  • @gabrielsoloman5000
    @gabrielsoloman50004 жыл бұрын

    best series on non-basic git, congrats

  • @vaibhavgarg5607
    @vaibhavgarg56072 ай бұрын

    Was stuck on a PR as I was unable to edit a commit's changes this video saved me. Really helpful

  • @vishnuthamizharasan6192
    @vishnuthamizharasan61924 жыл бұрын

    I have searched for answers and videos I didn't get anywhere, but the way you explain git is amazing and one of the best explanations ever seen. You are soo good at Git man. Thanks for the Video. Please make more videos. I love it

  • @krazee_aznnn
    @krazee_aznnn4 жыл бұрын

    I mean, so many comments before have said this, but I need to confirm: this tutorial was more clear and understandable than the articles and other videos I watched about rebasing and changing Git commit history! I get it now!

  • @arthurh2064
    @arthurh20644 жыл бұрын

    I wish you wouldn't have stopped uploading git tutorials, they are by far the best I've seen and I've seen many

  • @MartijnMuijsers
    @MartijnMuijsers2 жыл бұрын

    Great concise explanation of everything that might matter to someone!

  • @kapaaaau
    @kapaaaau4 жыл бұрын

    This is the best explanation I have seen for Git's commands, and they are real world solutions for real world problems. Thank you very much.

  • @nrmlkmrks
    @nrmlkmrks4 жыл бұрын

    Awesome video! Great example of explaining stuff to the point with really good examples.

  • @abdul-aleemelmuzoghi4133
    @abdul-aleemelmuzoghi41333 жыл бұрын

    Been 2 days trying to learn how to delete a commit and you just came and and did it in 2 minutes

  • @videet
    @videet Жыл бұрын

    Clear and crisp. Thank you.

  • @gaofan2856
    @gaofan2856 Жыл бұрын

    Perfect video, short, precise with visualization. Not like telling the history of git for 40 minutes, and then start explaining things like others do

  • @AIGenerated
    @AIGenerated4 жыл бұрын

    Good job this video looks edited by a professional company, the animations really help, keep up the good work

  • @greenmanreddog
    @greenmanreddog4 жыл бұрын

    Very clear and concise explanations - thanks.

  • @nospecialmeaning2
    @nospecialmeaning22 жыл бұрын

    Subscribed! You might be the only KZreadr I have an occasional compulsion to listen to at lower than normal speed :D

  • @ianedits1
    @ianedits12 жыл бұрын

    Short and precise. Good job sir

  • @Anujgupta-yi9di
    @Anujgupta-yi9di3 жыл бұрын

    Great job! Explains everything so easily :)

  • @alexanderjesusvargas5998
    @alexanderjesusvargas59984 жыл бұрын

    It is crazy this is free content!

  • @gabrielsanmartin8326
    @gabrielsanmartin83263 жыл бұрын

    Awesome buddy! I'm trying to go deep into git.. and this video was gold.

  • @donalexey
    @donalexey5 жыл бұрын

    This is just a great tutorial!

  • @Mark986270
    @Mark9862708 ай бұрын

    Thank you very much. This was just what I needed to clean up my merge requests

  • @shivanjalikaname8935
    @shivanjalikaname89353 жыл бұрын

    Voila...you gained a subscriber.. just loved the way you explain technically and practically

  • @alpavaidya412
    @alpavaidya4124 жыл бұрын

    The animation is what is required to understand Git commands...thanks for making the effort to make them to explain....please make more videos on Git

  • @JoshuaMusau
    @JoshuaMusau4 жыл бұрын

    You make a really good teacher...

  • @qCJLbggG4IWAY9nTH6o
    @qCJLbggG4IWAY9nTH6o2 жыл бұрын

    I'm thankful for your content

  • @SakhawatHossainlive
    @SakhawatHossainlive3 жыл бұрын

    Wonderful !! Thanks for this video man.

  • @fullstackprojects5615
    @fullstackprojects56153 жыл бұрын

    git rebase is a very powerful tool. Thanks for sharing your knowledge :)

  • @RubenDias93
    @RubenDias934 жыл бұрын

    Great tutorial! Very useful and nicely explained.

  • @moe-eh5vi
    @moe-eh5vi2 жыл бұрын

    I like that this video is recorded in a kitchen. Makes it feel less intimidating. Also very clear explanations.

  • @bseroy
    @bseroy4 жыл бұрын

    These videos are fantastic!

  • @DavidLance
    @DavidLance4 жыл бұрын

    Absolute life saver! Thanks a ton for this.

  • @VKD007
    @VKD0072 жыл бұрын

    i fixed something today by manual merging with dev branch if i knew this before i wouldnt need to do manual work. Thanks man nice videos

  • @youssefsabbagh4341
    @youssefsabbagh43412 жыл бұрын

    Great video !! Couldn't have explained it any better !!

  • @Kamaltweet
    @Kamaltweet4 жыл бұрын

    Wow. You made it so easy to learn. Thank you 🙏

  • @siegblink182
    @siegblink1824 жыл бұрын

    Thanks for making this video. This has solved most of my problems.

  • @mr.w7803
    @mr.w78034 жыл бұрын

    All things I've done before, but I do them so infrequently I forget the work flow... thank you so much for the walk through!

  • @NirdeshM
    @NirdeshM3 жыл бұрын

    Very informative with awesome explanation.

  • @przemekostrowski3108
    @przemekostrowski31089 ай бұрын

    Very good video. Well explained. Thank you!

  • @m4rt_
    @m4rt_7 ай бұрын

    Holy shit, git rebase is powerful. I will keep this in mind whenever I want to fix something in my git history.

  • @louaiforui
    @louaiforui Жыл бұрын

    Great job! great explanation!

  • @martinspilovsky9071
    @martinspilovsky90713 жыл бұрын

    Thank you so much for this compilation

  • @SarnenduMukherjee
    @SarnenduMukherjee3 жыл бұрын

    Thank you for this superb video. Awesome animation and edit makes this video more awesome.

  • @LeonardoBPG
    @LeonardoBPG4 жыл бұрын

    Thank you for saving my life!

  • @rahuldasmajumder7690
    @rahuldasmajumder76902 жыл бұрын

    Thanks man..it really cleared the doubts✌️

  • @akbarhafeezbutt1761
    @akbarhafeezbutt17612 жыл бұрын

    Thank you very much for your knowledge sharing, you're the best!

  • @Pumazr
    @Pumazr4 жыл бұрын

    Great video, so clean explanation.

  • @rockydev5750
    @rockydev57505 жыл бұрын

    Amazing Dude! Thanks for your video.

  • @pradeepnooney3056
    @pradeepnooney30563 жыл бұрын

    Thank you so much. Very good tutorial. and good animation too

  • @vidyawimalasooriya6604
    @vidyawimalasooriya66042 жыл бұрын

    Superb Explanation

  • @rohitkumarshrivastava9693
    @rohitkumarshrivastava96933 жыл бұрын

    You are a genius!! This video has helped me a lot

  • @magakz
    @magakz2 жыл бұрын

    Awesomeee!!! Thanks man! Cool video, helped me a lot!

  • @liminal6823
    @liminal68232 жыл бұрын

    Excellent tutorial.

  • @10SURA
    @10SURA3 жыл бұрын

    Thank you very much for your content. Extremely helpful

  • @StefanBanu
    @StefanBanu4 жыл бұрын

    A perfect video. Thank you 🙂

  • @lucasvtiradentes
    @lucasvtiradentes3 жыл бұрын

    omg this video saved my life, thank you very much!!!

  • @BG-fo4si
    @BG-fo4si Жыл бұрын

    You explained it beautifully

  • @dhansb883
    @dhansb883 Жыл бұрын

    this is what ive been looking for

  • @forkanali
    @forkanali3 жыл бұрын

    very helpful and short video. short time you teach me alot. thank you !

  • @samithakulatilaka
    @samithakulatilaka3 жыл бұрын

    Great Explanation. Thank You.

  • @demian256able
    @demian256able2 жыл бұрын

    excelent vídeo. very clear explained. that kind of graphics are a very good idea.

  • @ashleyrawr74
    @ashleyrawr744 жыл бұрын

    This is such a helpful resource! :)

  • @violindiep
    @violindiep4 жыл бұрын

    Very clear explanation, thanks !

  • @sekar887
    @sekar8872 жыл бұрын

    Thanks a lot for this video, this is very useful

  • @amitbd1508
    @amitbd15082 жыл бұрын

    thanks man . you saved my day

  • @jeffreyrooks9488
    @jeffreyrooks94884 жыл бұрын

    Excellent video!

  • @soumyadrip
    @soumyadrip3 жыл бұрын

    Great video,solved so many doubts

  • @jibaromar2249
    @jibaromar22494 жыл бұрын

    Amazing video man, THANKS A LOT

  • @iconjack
    @iconjack4 жыл бұрын

    This was an amazing video. I learned a lot, including: I will never split a commit.

  • @mohammadanas3320
    @mohammadanas33203 жыл бұрын

    You r underrated bro...keep making videos

  • @alanjrobertson
    @alanjrobertson Жыл бұрын

    Another excellent video, wish you'd come back to KZread and do more!

  • @rodhash
    @rodhash2 жыл бұрын

    crazy vid man, thanks

  • @jaytran247
    @jaytran2473 жыл бұрын

    great great tutorial videos. you are brilliant

  • @pitter5990
    @pitter59905 жыл бұрын

    Love your videos! I hope you go ahead with them!

  • @themoderncoder

    @themoderncoder

    5 жыл бұрын

    For sure. Got any idea for topics?

  • @pitter5990

    @pitter5990

    5 жыл бұрын

    @@themoderncoder Soft Skills. They are as much crucial as Hard Skills. The idea is to present the most important of them, and how can Soft Skills turn you into a rare professional.

  • @mrrajib
    @mrrajib3 жыл бұрын

    Awesome tutorial. Learnt new things. Cheers (y)

  • @MrSchattka
    @MrSchattka4 жыл бұрын

    Thank you, very good tutorial.

  • @ratenoopee
    @ratenoopee4 жыл бұрын

    Clearly and easy to understand. thank for good video. :-)