jj-workspace: add page (#23995)

This commit is contained in:
Agam Agarwal
2026-09-14 23:45:02 +05:30
committed by GitHub
parent f6d00eab3e
commit e2bb2b7d08
+36
View File
@@ -0,0 +1,36 @@
# jj workspace
> Manage Jujutsu workspaces.
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-workspace>.
- List all workspaces attached to the repository:
`jj workspace list`
- Create a new workspace at the specified path:
`jj workspace add {{path/to/directory}}`
- Create a new workspace with a specific name and parent revision:
`jj workspace add --name {{workspace_name}} {{[-r|--revision]}} {{revision}} {{path/to/directory}}`
- Print the root directory of the current workspace:
`jj workspace root`
- Print the root directory of a specific workspace:
`jj workspace root --name {{workspace_name}}`
- Rename the current workspace:
`jj workspace rename {{new_name}}`
- Stop tracking a workspace without deleting its files:
`jj workspace forget {{workspace_name}}`
- Update a workspace whose working copy has become stale:
`jj workspace update-stale`