Folders per environment or branches per environment?
IntermediateConceptRepo Structure, Flux, Scaling & DR
Answer
Folders per environment on one branch (envs/dev, envs/staging, envs/prod) is the recommended pattern. Branch-per-environment leads to merge conflicts, environment-specific commits that should not propagate, cherry-pick chaos and invisible differences (you cannot diff dev and prod side by side in one tree). With folders, promotion is a visible diff between two files, and Kustomize overlays or Helm value files keep shared config in one base.
More on Repo Structure, Flux, Scaling & DR
Why separate the application source repo from the config (GitOps) repo?BeginnerHow do you promote a release from staging to production in GitOps?IntermediateWhat does a typical multi-team config repo layout look like?IntermediateHow does Flux differ from Argo CD architecturally?IntermediateWhen would you pick Flux over Argo CD, and vice versa?IntermediateHow do you bootstrap Flux on a cluster?Intermediate