What are the trade-offs between tags and branches for marking releases?

Last updated 6 July 2026

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

  • https://circleci.com/blog/git-tags-vs-branches/
  • https://medium.com/@WHOISAPPY/git-tags-c2cfe02bc37c
  • https://medium.com/@garvitjindal09/git-tags-vs-branches-a-comprehensive-guide-2ff7706fec21
  • https://www.boot.dev/blog/devops/git-tags
All Git interview questions