brewly — Ch.7 · Take just one commit
Exercise 4 of 6
Before you start
Cherry-picking
git cherry-pick <commit> copies the change of one commit onto the branch you are on, as a new commit.
Name it by its short id, or relative to its branch: <branch>~1 is one before the tip.
- git log --oneline <branch>
- list that branch’s commits
- git cherry-pick <commit>
- copy one commit here
You can reopen this any time with “Lesson”.
# BrewlyOrder coffee ahead.## Team- Maya (lead)- Alex (frontend)
Graph
- bf01ab1 Try another colourfeature/redesign
- 673a857 Fix the currency code
- 5da7484 Start the redesign
- 1354d06 Add menu pageHEAD → mainorigin/main
- 619eb3b Style the order button
- 5fc44ac Initial commit