| Strategy | Mô tả |
|---|---|
| GitFlow | main, develop, feature/, release/, hotfix/* |
| Trunk-based | main + short-lived feature branches |
| GitHub Flow | main + feature branches + PRs |
main → Production
develop → Development/Staging
feature/* → Preview/Ephemeral
release/* → Release candidate
hotfix/* → Emergency fixes
git tag -a v1.2.3 -m "Release 1.2.3"
git push origin v1.2.3
Version 1 → "Initial release"
Version 2 → "Bug fix"
Version 3 → "New feature"
Alias "prod" → Version 2 (stable)
Alias "beta" → Version 3 (testing)
my-app:latest → Mutable (dev)
my-app:v1.2.3 → Immutable (release)
my-app:sha-abc123 → Git commit SHA
Exam Tip: Git tags for releases. Semantic versioning. Lambda versions = immutable, aliases = mutable pointers. Container tags for version pinning.