Copy-on-write worktrees
Register a Paseo worktree manager that creates git worktrees via git-coworktree copy-on-write clones.
Registers a Paseo worktree manager that creates new git worktrees through the external git-coworktree tool so tracked files can use filesystem copy-on-write on supported volumes.
How it works
git-coworktree add runs from the source workspace checkout, clones tracked files with APFS/reflink when available, copies paths matched by .worktreeinclude, then finishes the normal git worktree lock/unlock cycle. The source checkout is not modified. Only the create step is customized; remove and restore keep using Paseo’s built-in git commands.
Paseo's built-in worktree creation and its worktree-include plugin use copy-on-write for ignored files only and check out tracked files normally. The built-in worktree-include plugin skips files that already exist, so both can stay enabled.
Setup
Install git-coworktree on the machine running the Paseo daemon (for example via go install go.dw1.io/git-coworktree@latest) or point to a binary with the optional GIT_COWORKTREE_BIN environment variable. Needs Paseo 0.17 or newer. Best results on macOS APFS or Linux with reflink support and Git 2.36+; otherwise the tool falls back to a regular checkout.
Capabilities
Handles worktree create for branch-off, checkout-branch, checkout-change-request, and checkout-github-pr flows. Declines when the tool is missing, when a new branch name already exists, when checking out a branch that is active in another worktree, or when a PR checkout has no resolved head SHA, so Paseo can use its default git path.
Settings
GIT_COWORKTREE_BIN: absolute path to the git-coworktree executable on the daemon host. When unset, the plugin searches PATH, then common Go install locations.
Data and privacy
Reads the local git repository, worktree metadata, and optional .worktreeinclude in the repo. Runs only local git and git-coworktree commands on the daemon host. Does not send repository data elsewhere or download or install software by itself.
Limits
Falls back to Paseo’s git worktree flow when the binary is missing, on name collisions, on unsupported filesystems, or when git-coworktree itself falls back. Creation can take a few hundred milliseconds longer than a plain git worktree. Untrusted checkouts disable repository hooks for the create command via git config environment variables. Remove and restore are not handled by this plugin.
