Introduction to Cherry-pick
Task
While on main, copy the commits C3, C4 and C7 from other lines of history onto it one after another.
Requirements
- Use cherry-pick.
- Keep the order: first
C3, thenC4, thenC7. - Do not move the other branches.
Expected result
A linear chain of three new copies of the chosen commits must appear at the tip of main. HEAD must stay on main.
What you will learn
After completing the task, you will be able to:
- move individual commits between branches;
- apply several cherry-picks in a given order;
- tell copying commits apart from merging a whole branch.
Goal
local