garden push
Push the current stack and create/update PRs
garden pushPush commits to the remote and automatically create or update pull requests.
garden push is stack-aware: it pushes the current commit AND all of its draft ancestors, bottom-up, creating or updating one PR per commit (Gerrit/Phabricator model). Each commit’s PR is diffed against its parent commit.
On a commit’s first push a new PR is created; after an amend the existing PR is found via the predecessor commit and a new revision is added; an unchanged commit that’s already pushed is left as-is.
Use -m to set the title of the top commit’s PR on first push. If omitted, each commit’s first message line is used.
| Flag | Type | Default | Description |
|---|---|---|---|
--merge |
bool | — | After pushing, merge to the default branch without review or CI (requires the repo’s merge-without-review policy; a single change at head only) |
-m, --message |
string | — | PR title for the top commit (used on first push) |