dsh-fork-worktree: Fork a git worktree from the working directory

dsh-fork-worktree is a DSH workflow plugin maintained by Bainianzzz. It adds "fork" and "trash" buttons between the "..." and "+" icons in the sidebar workspace row. The "fork" function creates a worktree at the same level as the repository and registers a new workspace; it supports checking out only the HEAD or copying untracked and ignored files. For non-Git directories, it allows initializing a repository before creating the worktree. Deletion requires confirmation before executing `git worktree remove` and removing the registration; dirty workspaces require a forced secondary confirmation, and there is no slash command for deletion. To install, add `github:Bainianzzz/dsh-fork-worktree` in the plugin panel and enable it; the `/fork-worktree` command is available within the session. Requires DSH >= 0.2.1-rc.2 < 0.3.0. MIT License.

Read More