Worktrunk Snippets
Source: Worktrunk — Git Worktree Manager for AI Agent Workflows
# List worktrees with status, with all attributes (--full)wt listwt list --full
# Switch to worktree by namewt switch alpha
# Create and switch to new worktreewt switch --create api
# Remove a worktreecd betawt remove
# Create a worktree and branch called feature and start a programwt switch -c -x opencode feature
# Merge to the default branchwt merge
# Merge to different branchwt merge develop
# Merge to default branch and keep worktree after merging (--no-remove)wt merge --no-remove
# Preserve commit history on merge (--no-squash)wt merge --no-squash