Merging
Merge workstream changes into your current branch.
Merge a Single Workstream
bash
ws merge auth-featureThis performs a squash merge — all changes from the workstream branch are staged but not committed. Review with:
bash
git diff --cachedThen commit when ready:
bash
git commit -m "feat: add JWT authentication"Merge into a Specific Branch
bash
ws merge auth mainMerge All
Merge all successful workstreams at once:
bash
ws merge --allWhen merging multiple workstreams, each is auto-committed with the message ws: <name> to avoid merge conflicts between them.
Keep Worktree After Merge
By default, the worktree and branch are cleaned up after merge. To keep them:
bash
ws merge auth --no-cleanupWhat Happens on Merge
- Validates no unresolved merge conflicts
- Squash-merges the workstream branch into the target
- Stages all changes (single workstream) or auto-commits (batch)
- Removes worktree and deletes branch (unless
--no-cleanup) - Updates state