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
# → feat/api-routes and feat/api-tests show updated heads
307
+
# → feat/api-routes and feat/frontend show updated heads
308
308
```
309
309
310
310
If `sync` hits a conflict during this process, it restores all branches to their pre-rebase state and exits with code 3. See [Handle rebase conflicts](#handle-rebase-conflicts-agent-workflow) for the resolution workflow.
@@ -520,7 +520,7 @@ gh stack sync [flags]
520
520
521
521
1.**Fetch** latest changes from the remote
522
522
2.**Fast-forward trunk** to match remote (skips if already up to date, warns if diverged)
523
-
3.**Cascade rebase** all stack branches onto their updated parents (only if trunk moved). Handles squash-merged PRs automatically with `--onto`. If a conflict is detected, **all branches are restored** to their pre-rebase state and the command exits with code 3 — see [Handle rebase conflicts](#handle-rebase-conflicts-agent-workflow) for the resolution workflow
523
+
3.**Cascade rebase** all stack branches onto their updated parents (only if trunk moved). Handles squash-merged PRs automatically. If a conflict is detected, **all branches are restored** to their pre-rebase state and the command exits with code 3 — see [Handle rebase conflicts](#handle-rebase-conflicts-agent-workflow) for the resolution workflow
524
524
4.**Push** all active branches atomically
525
525
5.**Sync PR state** from GitHub and report the status of each PR
526
526
@@ -575,7 +575,7 @@ gh stack rebase --abort
575
575
576
576
**Conflict handling:** See [Handle rebase conflicts](#handle-rebase-conflicts-agent-workflow) in the Workflows section for the full resolution workflow.
577
577
578
-
**Squash-merge detection:** If a branch's PR was squash-merged on GitHub, the rebase automatically uses `git rebase --onto` to correctly replay commits on top of the merge target. This is handled transparently.
578
+
**Squash-merge detection:** If a branch's PR was squash-merged on GitHub, the rebase automatically handles this and correctly replays commits on top of the merge target.
579
579
580
580
**Rerere (conflict memory):**`git rerere` is enabled by `init` so previously resolved conflicts are auto-resolved in future rebases.
0 commit comments