You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NEVER use `git commit` or `git push` directly.** Always use `av commit` and `av sync --push=yes --prune=yes`. Using git directly skips restacking and breaks the stack.
36
+
**NEVER use `git commit` or `git push` directly.** Always use `av commit`for commits and `av pr` (which pushes automatically) or `av sync --push=yes --prune=yes` for pushing. Using git directly skips restacking and breaks the stack.
37
37
38
38
**NEVER pass `--no-edit` to `av commit --amend`.** The flag doesn't exist — no-edit is already the default behavior. Just use `av commit --amend`.
39
39
@@ -66,8 +66,8 @@ Many `av` commands default to interactive TUI prompts that agents cannot use. **
66
66
67
67
```bash
68
68
av commit -A -m "message"
69
-
av pr --title "Title" --body "Body"
70
-
av sync --push=yes --prune=yes
69
+
av pr --title "Title" --body "Body"# pushes the branch and creates/updates the PR
70
+
#av sync is only needed later to rebase the stack or push changes across multiple branches
71
71
```
72
72
73
73
## Understanding Stack Structure
@@ -178,8 +178,9 @@ Each layer gets its own focused PR. Reviewers with different expertise (DBA, bac
-`git push` → use `av sync --push=yes --prune=yes`instead
181
+
-`git push` → use `av pr` when creating a PR (it pushes automatically); use `av sync --push=yes --prune=yes`to push changes and rebase across the stack
182
182
-`av commit --amend --no-edit` → just `av commit --amend` (no-edit is the default, the flag doesn't exist)
183
+
-`av sync` before/after `av pr` → unnecessary; `av pr` pushes on its own
183
184
184
185
### Pull Requests
185
186
@@ -191,6 +192,8 @@ Each layer gets its own focused PR. Reviewers with different expertise (DBA, bac
191
192
|`av pr --draft`| Create PR as draft |
192
193
|`av pr --edit`| Edit existing PR title/body |
193
194
195
+
**`av pr` automatically pushes** the current branch to the remote before creating or updating the PR. No prior `av sync` or `git push` is needed.
196
+
194
197
**Note:** Always pass `--title` and `--body` flags explicitly to avoid interactive prompts.
195
198
196
199
### Synchronization
@@ -252,6 +255,8 @@ Once a repo is av-initialized, **use av for everything** - even single PRs. av w
252
255
| Switch branches |`av switch <branch>`|
253
256
| View diff against parent |`av diff`|
254
257
258
+
**`av pr` vs `av sync`:**`av pr` pushes the current branch and creates/updates its PR — no separate push step needed. `av sync` fetches, rebases, and pushes across the entire stack. Use `av sync` for stack-wide rebase/push or cleanup after merges.
259
+
255
260
## Important Behaviors
256
261
257
262
1.**Use av commands consistently** - they work for single PRs and stacks alike.
0 commit comments