Chapter Nine

Team Workflows

The team agreements that turn Git from a personal tool into a shared one — branching models, pull request habits, commit conventions, repository shape, and the etiquette of contributing to projects you do not own.

5 topics

Git's mechanics are the same whether you work alone or on a team of fifty, but the decisions that matter change completely. Once more than one person touches a repository, the questions are no longer "how do I commit" but "how do branches map to releases, how big should a PR be, and what does a version number promise" — conventions, not commands.

This chapter covers those agreements: choosing a branching model by deploy cadence, keeping pull requests small enough to review, encoding intent in commit messages so tooling can version for you, deciding between a monorepo and many repos, and contributing to open-source projects whose maintainers you have never met.

Pick a branching model by release cadence
Many supported versions (SDK, on-prem)Git Flow
Continuous deploy to one productionGitHub Flow
Many deploys/day + feature flagsTrunk-Based

Topics in This Chapter