# Git-push deploy

A hosted remote per app — push, build in a sandbox, deploy through the same protocol.

> [!WARNING]
> **Planned** — This page describes intended behavior. It is not implemented yet, and details may change before it ships.

For teams that want the repository to be the deployment interface, every
app gets a hosted git remote:

```sh
git remote add pilvia https://deploy.pilvia.dev/git/my-site.git
git push pilvia main
```

Authentication is the same deploy token the CLI uses. A push triggers a
**sandboxed build** of your project on the platform, and the build output
goes through the exact same content-addressed
[deploy protocol](/hosting/deploys.md) as a CLI deploy — one pipeline,
two doors.

Refs map onto the [URL classes](/hosting/previews.md): the default branch can
promote to production, other branches update their branch aliases, and
every push gets its immutable build URL.

## Locking production to git

Direct deploys and git-push deploys coexist, but a team can declare that
**production only moves from git** — for example, only from `main`. The
lock is control-plane policy, not something a manifest inside an artifact
can claim for itself. Preview deploys stay open to direct `pilvia app
deploy` regardless — locking down drafts helps nobody. Breaking the glass
(a direct production deploy over the policy) is possible and audited.

## Connecting a GitHub repository

This part is in preview: see [Deploy from GitHub](/hosting/github.md). The
hosted remote will use the same builder.
