gitpractice.dev

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”.

Continue on a desktop

Typing git on a small screen is no fun. Open this page on a laptop or desktop to practise.

Back to the path