We'll change the last commit's message and also do an interactive rebase on an older commit.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
► [ Ссылка ]
► [ Ссылка ]
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► [ Ссылка ]
THE TOOLS I USE / GEAR
---------------------------------------------------
► [ Ссылка ]
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: [ Ссылка ]
► GitHub: [ Ссылка ]
TIMESTAMPS
---------------------------------------------------
0:00 -- What we're going to cover in this video
0:20 -- Use cases for wanting to change a commit
1:03 -- The project we'll be amending commits in
2:04 -- Amending the last commit message
3:15 -- Amending a file in the last commit without editing the message
5:44 -- Adding or removing multiple files and amending the last commit
6:20 -- Preparing to do an interactive rebase
7:25 -- Figuring out which commit to amend using HEAD~N or the direct SHA
9:15 -- Starting an interactive rebase with git rebase --interactive [SHA]^
10:18 -- Making our changes as part of the interactive rebase
11:39 -- Adding our changes and amending the commit during the rebase
12:33 -- Pulling the trigger and finalizing the rebase
13:21 -- Aborting a rebase in case you decide not to apply it
14:44 -- Using git stash to rebase a commit without mixing in our un-staged changes
17:35 -- Recap and do you have any questions?
![](https://s2.save4k.ru/pic/efJhX4SONVA/maxresdefault.jpg)