{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "feder-cr-git-ai--move-repository-state-to-database-and-object-storage",
 "repo": "feder-cr/git-ai",
 "repo_url": "https://github.com/feder-cr/git-ai",
 "repo_slug": "feder-cr-git-ai",
 "title": "Move repository state into SQLite or PostgreSQL and object storage",
 "page_title": "How to move repository state into SQLite or PostgreSQL and object storage with Git AI",
 "summary": "Add a graft storage section, import in shadow mode, then switch to authoritative.",
 "who": "A platform engineer who needs to run several gitai server nodes that scale out and share one consistent state.",
 "problem": "Local Git repositories on one machine cannot be shared safely by several server nodes handling many agents.",
 "outcome": "Repository state is kept in a database with a changeset log and packs live in object storage, and any server node can rebuild its cache.",
 "steps": [
  "Read doc/graft/STORAGE.md for the storage core design and the supported database and object storage options.",
  "Copy `examples/graft/config.toml` and adapt it for your server.",
  "Add a `[graft.storage]` section and start in `shadow` mode.",
  "Import your repositories while the server runs in shadow mode.",
  "Switch the storage mode to `authoritative` as described in doc/graft/STORAGE.md."
 ],
 "agent_prompt": "In the repository git-ai, read doc/graft/STORAGE.md and list the storage modes and the supported database and object storage backends. Start the server with `_build/bin/gitaly serve config.toml` using your storage section, and confirm the server runs in shadow mode before any switch.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README lists garbage collection of packs in the storage core as a known gap, so storage will grow until that is handled.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Linux or macOS",
  "Go 1.26",
  "A C toolchain",
  "Meson and Ninja (the build compiles a bundled Git)",
  "Git and a clone of https://github.com/feder-cr/git-ai.git"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/feder-cr-git-ai/move-repository-state-to-database-and-object-storage/",
 "md": "https://dedupedai.com/use-cases/feder-cr-git-ai/move-repository-state-to-database-and-object-storage/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/feder-cr-git-ai--move-repository-state-to-database-and-object-storage.json",
 "api_version": "v1"
}
