https://docs.gitlab.com/ee/topics/gitlab_flow.html
We run a modified version of the GitLab branching workflow.
main
contains the latest code from development that is ready to be deployed- We fork
main
and work onfeature/*
orbug-fix/*
orhotfix/*
branches - We use a PR to merge these branches back into
main
when they're ready - When we're ready to deploy to staging, we use a PR to merge
main
intostaging
(triggering CI/CD) - When we're ready to deploy to production, we use a PR to merge
staging
into `production (triggering CI, with manual deployment)
https://www.gitkraken.com/learn/git/best-practices/git-branch-strategy https://www.jetbrains.com/teamcity/ci-cd-guide/concepts/branching-strategy/