From 2b889a7b29f4b6583e73ba721e775305a76b71ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Nov 2026 02:14:29 +0000 Subject: [PATCH] Update CLI docs --- content/docs/commands/but-worktree.mdx | 14 ++++++++++++++ scripts/current_docs_version.txt | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/content/docs/commands/but-worktree.mdx b/content/docs/commands/but-worktree.mdx index 86e1e95..e06a11d 100644 --- a/content/docs/commands/but-worktree.mdx +++ b/content/docs/commands/but-worktree.mdx @@ -50,6 +50,20 @@ directories. Untracked files are copied if any prefix of their path is in the Accepts a branch by name or CLI ID, a commit by SHA or CLI ID, or any Git revision like origin/main. Conflicted commits and the GitButler workspace commit are refused. +### `but worktree recycle` + +Reuse an archived worktree on a new branch at the local target branch, or create one there. + +Picks the most recently updated archived worktree whose branch is already in the +target, isn't in the workspace, and that has no uncommitted changes and no Git +operation in progress. It is shown in the workspace again on a new branch with a +generated name, so the files Git doesn't track, such as build output and installed +dependencies, are kept. Its old branch stays as it was, with its upstream. Without +such a worktree, creates a new one there, like `but worktree new`. The local target +branch, such as `main`, is used even when its upstream has newer commits. + +**Usage:** `but worktree recycle` + ### `but worktree archive` Hide a worktree from the workspace until but runs inside it again diff --git a/scripts/current_docs_version.txt b/scripts/current_docs_version.txt index a750743..a51b824 100644 --- a/scripts/current_docs_version.txt +++ b/scripts/current_docs_version.txt @@ -1 +1 @@ -release/0.23.4 +release/0.23.5