From e2bb2b7d0821f1f0896ecab96e6df96424a41001 Mon Sep 17 00:00:00 2001 From: Agam Agarwal Date: Mon, 14 Sep 2026 23:45:02 +0530 Subject: [PATCH] jj-workspace: add page (#23995) --- pages/common/jj-workspace.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/jj-workspace.md diff --git a/pages/common/jj-workspace.md b/pages/common/jj-workspace.md new file mode 100644 index 0000000000..383e8d1ef9 --- /dev/null +++ b/pages/common/jj-workspace.md @@ -0,0 +1,36 @@ +# jj workspace + +> Manage Jujutsu workspaces. +> More information: . + +- 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`