Concepts
Git-based CMS explained, and why it suits agencies
Instead of a database, a git-based CMS keeps content in the same repository as the site. Every edit becomes a commit, with a name, a date and a way back.

A git-based CMS is a content management system that stores content as files in the site's git repository instead of in a database. When someone edits a page, the CMS writes the change to the file and makes a commit. The site is rebuilt and deployed from the repository, like any code change.
It sounds like a developer detail. For agencies, it's one of the most practical choices you can make about a client site. Here's why.
How a git-based CMS works
The flow is the same across tools:
- Content lives in files in the repository: Markdown, JSON or YAML, next to the templates.
- The editor reads those files through the git host's API (GitHub, for example) and shows them in a friendly interface.
- Saving or publishing makes a commit to the repository, usually on the main branch or on a branch for review.
- Your host sees the commit and rebuilds the site. Netlify, Vercel, Cloudflare Pages, Firebase, Hostinger and GitHub Pages all do this.
There's no separate content server and no database to back up. The repository is the source of truth for both code and content.
Git-based CMS vs database CMS
| Database CMS (WordPress, most hosted CMSs) | Git-based CMS | |
|---|---|---|
| Where content lives | A database on a server or in the vendor's cloud | Files in the site's repository |
| History | Revisions, if enabled, inside the CMS | Every change is a commit, with author and date |
| Undo | Per page, if supported | Any change can be reverted |
| Backups | Database dumps to manage | The repository is the backup |
| Deploy | Live on save | Commit, then your host builds and deploys |
| Lock-in | Content inside the system | Plain files you own |
| Previews | Built in | Branches or preview builds |
Why agencies like a git-based CMS
1. You own the content, in plain files
If you change tools, the content stays where it is. Nothing to export, no proprietary format. For client work, that's peace of mind for you and for the client.
2. Every change has a name, a date and a way back
Git keeps a full history. When a client asks "who changed the price last week?", the answer is a commit with a name on it. When something's wrong, it can be reverted.
3. Your deploy pipeline doesn't change
A content edit is just another commit. Your build, your tests and your host work exactly as they do when you push code. No second pipeline for content.
4. Static hosting stays static
No database, no PHP, no server to patch. The site stays fast and cheap to host, which is often why you moved the client off WordPress in the first place.
5. Review fits naturally
Git already has a review model: branches and pull requests. A git-based CMS can put a change on a branch, build a preview from it, and merge it when someone approves.
The limits of a git-based CMS
It's not all upside. The common pain points:
- Configuration per site. Most git-based CMSs need a config file describing every content type and field. That's work for each site, and it must stay in sync with your templates.
- Forms, not pages. Clients edit fields in a form, away from the page they're thinking about. "Which field is the Saturday hours?" becomes a support question.
- Build time. Changes appear after the site rebuilds, typically within a minute or a few. Good previews make this a non-issue.
- Git concepts can leak. Branches, pull requests and merge conflicts shouldn't reach clients, but in some setups they do.
We compare the main git-based options (Decap CMS, Sveltia, Pages CMS, TinaCMS, CloudCannon) in the best CMS for static sites.
An AI CMS on top of git
An AI CMS keeps everything good about a git-based CMS and replaces the form with a conversation. In ClaudePress, the content stays in the site's GitHub repository. The difference is how the edit is made:
- The client types what they want ("change the Saturday hours to 8 to 1").
- The AI finds the right place in the content files and makes the edit through narrow content tools.
- The change is shown before and after on the real page.
- Publishing is a git commit, signed with the person's name.
There's no form to configure. The AI reads the pages as they are, guided by a few notes you write about the site. More on the idea in What is an AI CMS?

How ClaudePress uses git, in practice
ClaudePress reaches repositories through its own GitHub App. Each account installs it and picks the repositories it allows; requests use short-lived tokens. On the hosted service, ClaudePress keeps no copy of your site: it reads content files through the GitHub API.
For previews, each site chooses one of three modes:
- Built by ClaudePress (the hosted default): the change is committed to a
claudepress/<change>branch, built with your site's own build command, and shown behind sign-in, with share links. Preview builds are deleted when the change is published or discarded, or after 3 days. - Built by the site's own pipeline: each change becomes a pull request; your pipeline posts the preview address. Publishing merges the pull request.
- Built on the ClaudePress server (self-hosting): the repository is cloned and built locally.
Publishing commits the change on the site's branch, on its latest version. Your host deploys it. See preview and before/after and approve and publish for the client-side view.
Is a git-based CMS right for your client sites?
It's a good fit when:
- the site is static (or statically generated) and deployed from a repository;
- you want content and code versioned together;
- you want to keep the option of changing editors later without migrating content.
It's less of a fit when the client needs live data that changes every minute, or a large editorial team working in a shared dashboard all day. A hosted headless CMS can suit those cases better; we compare approaches in AI CMS vs headless CMS vs WordPress.
Getting started
If your sites are already in GitHub, you're most of the way to a git-based workflow. To let clients edit them in plain language, follow how to let clients edit a static website, or the help guide add a site. ClaudePress works with Markdown sites (Astro, Next.js, Hugo, Eleventy, Jekyll) and with JSON page files (the shape a WordPress/Divi export leaves).
You can try ClaudePress free on one site, or run it yourself from the open source page. Questions about GitHub access and the license are answered in the FAQ.


