c to open the creation menu.
Creation Options
Select Creation Mode
Choose from:
- From current branch (with/without uncommitted changes)
- Checkout existing branch or create new
- From GitHub/GitLab issue
- From open PR/MR
Configure Options
Depending on the mode, configure:
- Branch name (manual or AI-generated)
- Base branch
- Include uncommitted changes (checkbox)
From Current Branch
Create a new worktree from your current branch with optional uncommitted changes.Without Uncommitted Changes
Creates a clean worktree from the current branch HEAD:With Uncommitted Changes
Creates a worktree and carries over your uncommitted changes:Uncommitted changes are copied using
git stash and git stash pop internally.Checkout Existing Branch or Create New
Select from existing branches or create a new branch from any base.- Checkout Existing
- Create New Branch
From GitHub/GitLab Issue
Create a worktree from an issue with automatic branch naming.Template Placeholders
{number}- Issue number{title}- Original sanitised issue title{generated}- AI-generated title (ifbranch_name_scriptconfigured)
From Open PR/MR
Create a worktree from an open pull request or merge request.Template Placeholders
{number}- PR/MR number{title}- Original sanitised PR/MR title{pr_author}- PR author username (PR templates only){generated}- AI-generated title (ifbranch_name_scriptconfigured)
PR/MR creation requires
gh CLI for GitHub or glab CLI for GitLab.AI-Generated Branch Names
Configurebranch_name_script to automatically generate meaningful branch names.
Environment Variables
The script receives:LAZYWORKTREE_TYPE-pr,issue, ordiffLAZYWORKTREE_NUMBER- Issue/PR numberLAZYWORKTREE_TEMPLATE- The configured templateLAZYWORKTREE_SUGGESTED_NAME- Default suggested name
Automatic Worktree Notes
Configureworktree_note_script to generate initial notes when creating from PR/MR or issue.
Environment Variables
LAZYWORKTREE_TYPE-prorissueLAZYWORKTREE_NUMBER- Issue/PR numberLAZYWORKTREE_TITLE- Issue/PR titleLAZYWORKTREE_URL- Issue/PR URL
If the script fails or outputs nothing, creation continues without a note.