Interview Prep/GitOps & Argo CD/Repo Structure, Flux, Scaling & DR

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Repo Structure, Flux, Scaling & DR