Juggling Commits
Task
Fix the last commit of the newImage branch, and then move the caption branch, which depends on it, onto the updated history.
Steps
- Switch to
newImage. - Overwrite its last commit using amend.
- Switch to
caption. - Rebase
captiononto the updatednewImagebranch.
Expected result
newImage must point to the fixed copy of its commit, and the commits of caption must sit on top of it.
What you will learn
After completing the task, you will be able to:
- fix the last commit with amend;
- update a dependent branch after its base is rewritten;
- understand the chain reaction of changing commit identifiers.
Goal
local