Skip to content

docs(skill): document the stacked-PR teardown flow - #52

Merged
zawakin merged 1 commit into
mainfrom
docs/stacked-teardown
Jun 29, 2026
Merged

docs(skill): document the stacked-PR teardown flow#52
zawakin merged 1 commit into
mainfrom
docs/stacked-teardown

Conversation

@zawakin

@zawakin zawakin commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What

Reflect the stacked-PR package (#48#51) in the git-workflow skill's stacking section:

  • gw sync restacks with git rebase --onto — replays only the child's commits, not the merged parent's — moves the PR base to main, force-pushes.
  • gw status guides the pre-PR case (parent merged before the child got a PR) to git rebase --onto origin/main <recorded-base>.
  • gw cleanup keeps a base branch alive while an open child PR still targets it (deleting it would make GitHub close that PR).
  • A note on why --onto is required after a squash merge (a plain rebase double-applies the parent's commits).

Why

Keep the skill — the single source of truth for the gw workflow — in step with the shipped behavior, so the stacked flow (create → sync → cleanup) is documented end to end.

🤖 Generated with Claude Code

Reflect the stacked-PR work (#48-#51) in the skill's stacking section: gw sync
restacks with rebase --onto (replaying only the child's commits, not the merged
parent's), gw status guides the pre-PR case, and gw cleanup keeps a base branch
alive while an open child PR still targets it. Adds a note on why --onto is
required after a squash merge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@zawakin zawakin self-assigned this Jun 29, 2026
@zawakin
zawakin merged commit 7b1993c into main Jun 29, 2026
@zawakin
zawakin deleted the docs/stacked-teardown branch June 29, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant