Cơ BảnGit iconGit

Git Flow là gì? Có những branching strategy nào phổ biến?

Git Flow có 5 loại branch: main (production), develop (tích hợp code), feature/ (tính năng mới), release/ (chuẩn bị release), hotfix/* (sửa lỗi khẩn cấp).

  • Trunk-based Development là hướng ngược lại: commit thẳng vào main với feature flags, phù hợp team CI/CD mature.
  • Thực tế phổ biến nhất: feature branch từ develop → PR review → merge develop → staging → merge main → production.
  • Naming convention quan trọng: feature/JIRA-123-add-login giúp trace thay đổi về requirement.

Xem toàn bộ Git cùng filter theo level & chủ đề con.

Mở danh sách Git