gg reconcile
Repair stack metadata when branches/PRs were manipulated outside gg sync.
gg reconcile [OPTIONS]
Options
-n, --dry-run: Preview only; make no changes-y, --yes: Skip the metadata normalization confirmation prompt. Use for non-interactive callers such as agents, MCP, or CI when you intentionally want reconciliation to proceed.
What it does
- Normalizes GG metadata trailers on stack commits (
GG-ID+GG-Parent) - Maps existing remote PRs/MRs back to local stack entries
Examples
# Safe preview
gg reconcile --dry-run
# Apply reconciliation
gg reconcile
# Non-interactive / agent usage — skip the confirmation prompt
gg reconcile --yes