Juggling Commits #2
Task
Copy the commit C2 located at the tip of newImage into two branches: main and caption.
Steps
- Switch to
mainand bringC2over there. - Switch to
captionand bring the same original commitC2over there.
Expected result
Independent copies of the change from C2 must appear in main and caption. The original newImage branch must stay in place.
What you will learn
After completing the task, you will be able to:
- apply one commit to several branches;
- switch the target branch before cherry-pick;
- tell the original commit apart from its independent copies.
Goal
local