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