Skip to content

Hosted Git storage

Every project has a hosted git repo. kernstack init creates it and pushes the first commit. Use the CLI instead of plain git clone so credentials and large files are handled for you:

kernstack git clone <project-id> [directory] [-b branch]
kernstack git branch                     # list remote branches
kernstack git checkout <branch> [-f]     # check out a remote branch

Branches named agent/<id> hold @agent demos.

Large files (≥ 10 MiB)

Files of 10 MiB or more are stored as bucket objects behind a small pointer (not Git LFS). Only the last 3 versions per path are kept, so old checkouts may get a newer version; see .git/kernstack/degraded-checkout.json.

History retention

History is kept for about 180 days. Older commits are compacted on the first access in a new UTC month, and tags older than the cutoff are removed. If local SHAs stop resolving, fetch and rebase or re-clone.

The console's Kernstack Git panel shows storage, branches, tags, and last compaction. Deploys use their own bundles, so compaction never affects deployed code.