brewly — Ch.8 · Cut a release branch
Exercise 3 of 5
Before you start
Why a release branch
Customers run v1.0.0 while main moves on, sometimes with half-finished work. Fixes for the release need a branch that starts at the tag.
git switch -c <name> <tag> creates a branch at any starting point.
- git log --oneline <tag>..main
- what is on main since the release?
- git switch -c <name> <tag>
- create a branch at the tag
- git push -u origin <branch>
- publish it
You can reopen this any time with “Lesson”.
# BrewlyOrder coffee ahead.## Team- Maya (lead)- Alex (frontend)
Graph
- de14ee9 Start loyalty cardsHEAD → mainorigin/main
- 1354d06 Add menu pagetag: v1.0.0
- 619eb3b Style the order button
- 5fc44ac Initial commit