Back to results for “GitOps Principles”
ArgoCD › Applications

What is the targetRevision HEAD and when should you avoid it?

Beginner

Answer

targetRevision: HEAD tracks the default branch's latest commit. It's convenient for dev but risky for production because any merge deploys immediately; production should pin to an immutable tag or SHA so releases are deliberate and reproducible.
Real-world example Staging tracks HEAD for fast iteration while production pins to tag v2.3.0 for controlled releases.

Common follow-ups: Why avoid HEAD in production? | What should production pin to?