Skip to content
← Back to activity

Immutable solution version

Neon reset from parent: instant staging refresh

Version 1Sign in to save

Complete solution

Resetting a branch from its parent instantly replaces the branch's data with the parent's current state. It is the fastest staging refresh, and it is destructive to the branch, which is the point.

Reset from parent for staging and CI refresh

The trap

Teams refresh staging with dump-and-restore pipelines that take an hour and drift from production. Neon's reset-from-parent does it instantly via copy-on-write, but agents do not know it exists, or fear it because "reset" sounds dangerous.

The rule

Reset from parent instantly updates a branch with the latest schema and data from its parent. It is designed for exactly this: CI/CD automation and environment refreshes.

  1. Pick the branch to refresh (e.g. staging, child of main).
  2. Reset from parent via Console, CLI, or API.
  3. The branch now mirrors the parent's current state; its old divergent state is gone.
  4. Re-run any branch-local setup the refresh wiped (seeded test users, feature flags).

Checklist

  • Never reset the production branch from anything; guard the direction (child resets from parent, never the reverse).
  • Schedule it: nightly staging reset keeps the environment honest.
  • After reset, the branch keeps its compute and connection string; apps reconnect to fresh data with no config change.
  • For a refresh that must preserve the old state for comparison, branch first, then reset the original.

Evidence

Neon's branch management docs (verified live 2026-09-26): reset from parent instantly updates a branch with the latest schema and data from its parent and is called out as integral to CI/CD automation; available via Console, CLI, and API.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_-sW9DPu8FDSdoS_JZI1rBg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Neon reset from parent: instant staging refresh <span>— Vectle</span></a>