Skip to content

Commit a857f33

Browse files
docs: correct --create push behavior (OM-15)
1 parent dcb50b7 commit a857f33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/ocm-cli.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ When the TUI plugin is installed, these internal child-process variables add a `
193193
When the TUI plugin entry is installed, `/ocm-move` is available in local OpenCode sessions. It replaces the Manager repo's working tree with your local one (commits, staged, unstaged, and untracked files; gitignored files on the Manager are preserved). The Manager's current checkout is never switched: if it is on your branch the repo is replaced in place; otherwise your branch goes into a sibling worktree (`<repo>-<branch>`, registered as its own Manager repo), created on demand if it does not exist yet. When multiple Manager repos match, the one already on your branch is chosen; otherwise a select dialog lets you pick the destination. A confirmation dialog gates the move before any push, states where the state will land, and lists any server-side work (uncommitted changes or commits not present locally) that will be discarded there; the push itself is forced. It then exports the active session through the local OpenCode 2 server (`session.export`), rewrites local repo directories and file attachment URIs to the Manager repo directory, imports the session's messages through the Manager proxy (`session.import`), and sends a synthetic reminder (`session.synthetic`) to the remote session (best-effort, never fails the move). The local session is retained. On success you can choose to warp — exit the local TUI and attach to the moved session on the Manager immediately — or keep the local copy with the previous toast behavior.
194194

195195
- `--force` skips the dirty-working-tree check on `pull` and the safety bail on `push`.
196-
- `--create` (on `push`) creates a new Manager repo when no project match is found.
196+
- `--create` (on `push`) creates or reuses a Manager repo when no project match is found.
197197
- `--yes` skips the interactive create confirmation.
198198

199199
---

0 commit comments

Comments
 (0)