Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/docs/commands/but-worktree.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/current_docs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release/0.23.4
release/0.23.5