What are the trade-offs between tags and branches for marking releases?
Last updated
Tags are immutable markers of the exact shipped commit (with metadata if annotated), but you can't commit fixes onto them.
Release branches (e.g.
release/2.1) allow hotfixes and patch releases, but they move, so they don't identify one shipped version.Common practice is to use both: a maintenance branch per release line and a tag on each published version.