DX Heroes logo
#devops
#engineering

What is GitOps?

Length: 

3 min

Published: 

June 9, 2026

What is GitOps?

What GitOps means

GitOps is a way to manage infrastructure and deployments where a Git repository holds the desired state of your systems, and an automated agent keeps the real environment matching it. You describe what should be running, in what version, with which settings, all as files in Git. Software then watches that repo and applies any change automatically.

You stop logging into servers to tweak things by hand. Instead, every change goes through a pull request, gets reviewed, and is merged. The merge itself triggers the deployment.

In plain words

Think of Git as the official blueprint for a building, and a tireless site manager who constantly compares the building to the blueprint. The moment reality drifts, a wall in the wrong place, the manager fixes it back to plan. With GitOps, you change the blueprint and the system rebuilds to match, instead of you walking around moving walls yourself.

Why it matters

  • Full history and audit trail. Every change is a commit, so you can see who changed what, when, and why, and roll back by reverting.
  • Fewer surprises. The live system can not silently drift from the plan, because automation keeps pulling it back to what Git says.
  • Safer recovery. If an environment breaks, you rebuild it from the repo instead of remembering which manual steps someone ran.
  • Reviewable changes. Infrastructure goes through the same pull-request review as application code.

GitOps is most common with Kubernetes, using tools like Argo CD or Flux, but the principle works anywhere you can describe infrastructure as files.

Common pitfalls

  • Secrets do not belong in Git in plain text. Passwords and keys need encryption or a dedicated secrets manager. Putting them straight in the repo is a serious leak waiting to happen.
  • Drift from manual changes. If someone edits the live system by hand, GitOps may either overwrite their fix or get confused. Agree that Git is the only way in.
  • Treating it as a silver bullet. GitOps does not replace good testing, monitoring, or rollback plans. It organises change; it does not guarantee the change is correct.

Related articles:

  • What is CI/CD? - The automation pipeline GitOps often plugs into.
  • What is DevOps? - The wider culture GitOps puts into practice.
  • What is platform engineering? - Building the internal platforms where GitOps usually lives.

Want to stay one step ahead?

Don't miss our best insights. No spam, just practical analyses, invitations to exclusive events, and podcast summaries delivered straight to your inbox.