Module 3 of 6Lesson 2 of 2~15 min
Branching strategy and commit messages
Branches that live too long and unreadable histories slow the whole team down. This lesson helps you understand the main branching models and when each one fits, then name your branches and write your commit messages so your teammates grasp your work at a glance.
Lesson objective
By the end of this lesson, you will be able to compare trunk-based development and Git flow for a given context, name a branch with a readable convention and write commit messages in the Conventional Commits format.
Topics covered
- branching strategy
- trunk-based development
- Git flow
- Conventional Commits
- commit messages
In the glossary
Where it fits
Work on a branch, day to day
Which commands do I use, in what order, and how do I name my work?
Lessons in this module
- Everyday commands, and what can go wrong
- Branching strategy and commit messages (this lesson)
What you will learn in this module
This lesson is part of the course Git for PMs: ship as a team without putting production at risk
- Work on a short-lived branch with everyday Git commands (or their GitHub equivalents), small commits named by convention, and stay in sync with main.
Related courses
- Tech for PMsAll levelsNo prerequisites: accessible to everyone.
Explain how a web product works, from browser to server
2 hr 30 min
- Tech for PMsJuniorSome basics are useful: introductory knowledge of the topic.
Design and test an API integration as a PM
3 hr
- Tech for PMsJuniorSome basics are useful: introductory knowledge of the topic.
Model your product’s data and query it with SQL
3 hr 30 min