Sometimes you need to get the code on your Git branch updated with the latest code in the main (a.k.a. master) branch or maybe a different branch being worked on by colleagues. You can merge those changes into your branch, or you can rebase your branch on top of their most recent changes. Rebasing places your commits in front of the latest commits from the branch you're rebasing on top of, ensuring all of the latest changes are present.
Other times you may be working on your Git branch and have some clean up commits. They might fix typos or small bugs and be directly tied to commits that haven't merged in yet. You can use Git rebasing to squash them down and manipulate history.
In this screencast, I walk through and demo both scenarios for how to rebase a Git branch on top of another branch.
Chapters:
00:00 - Intro
00:26 - Rebasing a Branch
07:26 - Interactive Rebasing with Squashing
19:59 - Outro
Support my screencasts by buying me a coffee: https://www.buymeacoffee.com/brettcha...
Смотрите видео Git Rebasing Explained онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Brett Codes 04 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,026 раз и оно понравилось 70 людям.